Questions tagged [regression]

In statistical modeling, regression analysis is a statistical process for estimating the relationships among variables. It includes many techniques for modeling and analyzing several variables, when the focus is on the relationship between a dependent variable and one or more independent variables.

Filter by
Sorted by
Tagged with
0 votes
0 answers
15 views

Spatial panel regression estimation in R: "problem too large"

I use the splm and spdep packages in R to estimate a difference-in-difference spatial regression with time and individual fixed effects. My panel consists of X 30m tiles observed for three years. ...
user avatar
1 vote
0 answers
22 views

Reusing regression or machine learning model in subsequent years

I have collected high-resolution UAV imagery and leaf area index (LAI) plot data. I plan on creating a model which uses my ground-based LAI to establish a relationship or train my UAV imagery. I will ...
user avatar
  • 53
0 votes
0 answers
22 views

R predict() a future table value in a time series

I have tree canopy information measured for 5 trees over 4 dates in the following CSV: treeID,X,Y,Z,area,date 1278,888260,936944,58.8,40.7,2021-09-22 1278,888262,936940,53.6,66.3,2021-10-15 1278,...
user avatar
  • 13
0 votes
0 answers
26 views

Google Earth Engine's regression residuals are different from the ones calculated with expression

I did regression with linearRegression and got the coefficients and residuals. I use the coefficients to calculate residuals using expersssion. However, the two residuals were different and I don't ...
user avatar
  • 361
0 votes
0 answers
21 views

LinearRegression result different in GEE and sklearn

I ran linear regression twice on a dataset (data, an Image with 6 bands) I created in google earth engine . The first time with GEE's built in LinearRegression, and the second time with sklearn....
user avatar
  • 361
0 votes
0 answers
33 views

Linear Regression on multiple images instead of ImageCollection in Google Earth Engine

I have a question about computing linear regression using images as inputs in Google Earth Engine. The examples I found here 1 regress image bands and time using ImageCollections not image outputs as ...
user avatar
  • 1
0 votes
0 answers
35 views

Forest-based classification and regression error 110180 using ArcGIS Pro

I tried to train a model to predict a binary output, while I used 12 bands from Sentinel-2 satellite images as the explanatory training raster, but there's an error showed that there was not enough ...
user avatar
1 vote
1 answer
159 views

Earth Engine: minimumDistance classifier in regression mode

The minimumDistance classifier in GEE uses the nearest neighbor procedure to predict a class (in classification mode) or a real value (in regression mode). The parameter "Knearest" set by ...
user avatar
0 votes
0 answers
105 views

Error in bandwidth calculation for Geographically Weighted Regression

I am using the GWmodel package in R to perform Geographically Weighted Regression. I have approximately 100 locations, for which I have calculated the distance matrix named DM using the function distm(...
user avatar
  • 1
0 votes
0 answers
13 views

I need to print RMSE but don't know why error is coming

I need to print root mean squared error (RMSE) but don't know why error is coming. Can any one share code how I can calculate RMSE?
user avatar
0 votes
1 answer
176 views

Linear regression analysis in R [closed]

I would like to conduct a simple linear regression analysis in R with two grids. So I have two Raster images of the same region and I need to do a regression analysis, but I struggle with doing that. ...
user avatar
0 votes
1 answer
186 views

Perform a Thiel-Sen regression on a raster stack in R

I have a raster stack of 20 layers. Each layer represent accumulated NDVI values for the growing season for each year spanning my period of study. I want to perform a trend analysis using Thiel-Sen ...
user avatar
0 votes
0 answers
40 views

Second order regression in QGIS

I am trying to calibrate nighttime light raster images. The data is available from 1992 to 2012 captured by different satellite and variation in the sensor too. Now in order to use the data for time ...
user avatar
  • 11
0 votes
0 answers
21 views

Geostatistical Modelling / What is the right model for my data?

I try to find a model for my data. I explored OLS regression models but I just get an R² of around 0.18 and I think I should not go with that. I also noticed that my data could be better modeled with ...
user avatar
  • 21
0 votes
1 answer
358 views

Calculating R-Squared Using the 'Residuals' Band from Google Earth Engine's linearRegression() Reducer

I am trying to calculate an R-Squared for a harmonic linear regression I did with two dependent variables across an image collection, using the linearRegression reducer on Google Earth Engine. The ...
user avatar
1 vote
0 answers
51 views

Setting up Generalized Linear Regression in ArcGIS Pro

I am analyzing a series of old canals and I am trying to make the case that these are tied to certain physical characteristics (soil, slope, etc) in the watershed. To check wether or not my hypothesis ...
user avatar
  • 51
2 votes
1 answer
232 views

Regression in QGIS

I have point rainfall and temperature values for a district and a few sample yield points for the same. How do I interpolate the yield points for the whole district wrt the rainfall and temperature? ...
user avatar
  • 101
0 votes
0 answers
44 views

Regression using spatio-temporal data

I'm trying to implement a regression using R, but the various models I have tried so far do not predict well at all. The dataset I'm working with consists of roughly 10,000 observations which ...
user avatar
0 votes
0 answers
45 views

Creating probability of occurrence map in ArcMap Pro

I am trying to figure out how to create a map representing probability of some phenomena occurrence. I have a binary raster (1- phenomena exists; 0 - doesn't exist) and several raster that explain ...
user avatar
2 votes
1 answer
174 views

Surf3D, example from ggRandomForests: Random Forests for Regression

I have a model and I want to use the surf3D function in R, and produce a plot similar to the following (the image is the example from "ggRandomForests: Random Forests for Regression"). ...
user avatar
  • 27
1 vote
0 answers
61 views

Spatial regression: general nesting spatial model using splm package in R

I have a shapefile of panel data (multiple years of observations for each polygon). I am estimating fixed effects spatial regression models with this data. I used one year of this data to generate a ...
user avatar
  • 333
1 vote
1 answer
104 views

Regression Analysis

How can I perform a regression analysis between image reflection and field data in Google Earth Engine platform?
user avatar
1 vote
0 answers
26 views

What Explained Variance is good to proceed with Predictive Soil Mapping?

I have 1851 soil samples data on pH covering a study area of 7482sq.km in northern Ghana and I am using 52 environmental long-term average variables (Relief, Climate, MODIS Reflectances and derived ...
user avatar
1 vote
0 answers
193 views

Training Random Forest using more than 5,000 samples

I'm estimating forest biomass using Random Forest regression at a large scale. I want to train the Random Forest model using as many samples as possible (~100,000 samples), but it seems the Google ...
user avatar
  • 11
2 votes
1 answer
329 views

Interpreting results of GWR - what do the values mean?

I used R to run a Geographically Weighted Regression (GWR) model. The resulting model comes with a bunch of values that are given in a table. These are: sum.w X.Intercept, X.Intercept_se (standard ...
user avatar
  • 843
0 votes
1 answer
896 views

QGIS Regression Tools using only feature data

I'm trying to find in QGIS an analogous tool to ArcGIS's "Ordinary Least Squares". The tool takes in a shapefile, where the dependent variable and independent variables are all fields in ...
user avatar
  • 11
0 votes
1 answer
473 views

Linear Regression Error in GEE

I am trying to create a correlation chart between NDVI and LST. Everything working fine except the error message saying Error generating chart: FeatureCollection.randomPoints: Polygon too large to be ...
user avatar
3 votes
1 answer
121 views

When to use spatial regression for the proximity analysis

I am not sure about whether I should use spatial regression for the proximity analysis I am trying to do. I’ll just describe the scenario and goal: People claim that convenience stores lower nearby ...
user avatar
1 vote
0 answers
123 views

Testing for spatial autocorrelation in residuals of OLS regression

I'm currently working on a dataset that is most likely to have spatial autocorrelation issues. In particular, I have observations at the region level and I'm trying to run a regression to check ...
user avatar
  • 11
1 vote
0 answers
60 views

Focal regression 3x3 group of cells

I have two raster with same resolution and dimension: water-occurrence index and rainfall (mm). I want to create a new raster of SLOPE (a) and INTERCEPT (b) by performing linear regression between ...
user avatar
  • 465
2 votes
1 answer
809 views

Linear regresion at each raster pixel's value to predict future value (in R language)

I want to predict future value with existing time series raster. For simplicity, I want use linear regression at each raster pixel's value to predict future value I have successfull run this code. I ...
user avatar
  • 165
3 votes
1 answer
980 views

Google Earth Engine: Evaluate classifier of output type regression

Background According to the Google Earth Engine documentation for supervised classification, the accuracy assessment of classifiers such as ee.Classifier.smileRandomForest can be done using a ...
user avatar
  • 291
1 vote
0 answers
517 views

Memory allocation problem when running Random forest regression in python

I have image with 4 bands . I want to see if I can predict the first band using the 3 other bands. My problem is that I cannot fit the model because I get the following error message: MemoryError: ...
user avatar
  • 1,797
1 vote
1 answer
114 views

Multiple linear regression between grids: reviewing the assumptions

I am performing a regression analysis with three raster stacks in R. This worked so far. Now I want to check the conditions of the model and I am not sure how exactly that should work in this case. ...
user avatar
1 vote
0 answers
192 views

How to apply convolutional neural network over a time series of Landsat images

I am implementing a fully convolutional neural network (specifically U-Net) over a time series of Landsat 8 images to predict land cover change. I am following the demo notebook for the predictions. ...
user avatar
  • 654
3 votes
2 answers
90 views

Ordinary Least Squares Point Aggregation

I want to run an ordinary least squares regression in ArcGIS Pro on my dataset which is composed of about 400 fire occurrences (point data) and demographic variables (100x100m polygons of income, ...
user avatar
  • 41
2 votes
0 answers
50 views

What is missing in my spatial lag equation model?

I worked it in GeoDa but I think something is missing. What is the right equation for a spatial lag model? In my understanding to predict a variable Y is as follows: Y = w_t_homi100 + CONSTANT + ...
user avatar
2 votes
1 answer
531 views

modifiedmk Mann-Kendall Test Over NC /Raster stack

I am working with NetCDF file for analysis of trend. I am using the following codes for analysis of trend.. library(modifiedmk) library(raster) I <- brick("I.nc") d <- stack(I) ...
user avatar
  • 21
1 vote
2 answers
520 views

Display R2 in GEE chart

I have created scatter plot in GEE but for some reason it doesn't display the R2 and the way the linear regression displayd is also not good: as you can see. the R2 isn't displayed at all and the ...
user avatar
  • 1,797
-1 votes
1 answer
549 views

Export fitted values from time series regression in Google Earth Engine

I have used harmonic regression to model NDVI values in GEE. Now I would like to export fitted values for every half-month timestep. Unfortunately, much of the exported cells rasters have 'nodata', ...
user avatar
  • 11
1 vote
1 answer
766 views

How to select one band in image using rasterio

I have two different images and I want to select one specifi band from each one of them and calculate regression between them. Each one of those bands is a result of calculation I did (in the first ...
user avatar
  • 1,797
0 votes
0 answers
314 views

Export fitted values image of harmonic regression NDVI in GEE

I am trying to export rasters of harmonically-regressed fitted values of NDVI for every semi-monthly timestep (twice a month) for a given year. When I visualize the image (mosaic) created using the ...
user avatar
  • 11
4 votes
0 answers
8k views

TypeError: can't multiply sequence by non-int of type 'numpy.float64' [closed]

I'm trying to do a regression, but it does not allow me to multiply my values within the exponential function. import matplotlib.pyplot as plt import scipy import pandas as pd import numpy as np from ...
user avatar
2 votes
0 answers
236 views

GEE Hypothesis Test for Regression Slope

I am using Google Earth Engine to calculate linear trends over time using the linearFit reducer. I am interested in identifying pixels that exhibit significant increasing and decreasing trends using a ...
user avatar
  • 127
0 votes
1 answer
215 views

GEE Linear Regression Error - ReduceBands reducer must have one input: <Reducer>

I am having a problem with the Linear Regression function (code attached) when I try to regress latitude or longitude against B4 reflectance for a S2 image. I am getting the following error: ...
user avatar
1 vote
0 answers
33 views

Model binary rasters over time against non-spatial variable (e.g., inundation over time vs. gage height)

I have a time series of raster images for a study area that have been processed to a binary classification (inundated/not inundated). Each image in the series is time-stamped and can be associated ...
user avatar
1 vote
1 answer
686 views

How to use a regression equation to create a map in QGIS?

I have been working on creating an exposure map based on measures taken at fixed points. I want to extrapolate the results to a grid to get an exposure map (air pollution data) for a region based on ...
user avatar
  • 11
0 votes
1 answer
310 views

Calculate band using data from existing bands and look-up table in Google Earth Engine

I have a 4 band composite image and a csv table consisting of regression coefficients. Each row in the table represents a regression specific to a day of year (doy). The 1st column in the table is doy ...
user avatar
  • 331
1 vote
0 answers
75 views

Panel data regression

I have GIS data on individual events (with timestamps), and I am running a panel data regression, with the outcome variable being the number of events by district by month. My independent variables ...
user avatar
  • 11
0 votes
0 answers
261 views

GEE regression error: Image.reduce: ReduceBands reducer must have one input: <Reducer>

I'm trying to run a basic linear regression between two variables in Google Earth Engine. I have a two-band image: https://code.earthengine.google.com/?asset=users/stephenawood/reprexdata To run a ...
user avatar