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
0answers
11 views

QGIS r.regression line F significance

I performed with grass QGIS processing tool "r.regression line" a linear regression between two rasters. The result I got is shown in the picture Can someone explain to me what is the ...
2
votes
1answer
32 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"). ...
1
vote
0answers
23 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 ...
1
vote
1answer
39 views

Regression Analysis

How can I perform a regression analysis between image reflection and field data in Google Earth Engine platform?
1
vote
0answers
23 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 ...
0
votes
0answers
29 views

Getting Dictionary(Error): An internal Error has occurred: GEE use ridgeRegression and reduceRegion the coefficient Image

When I try to calculate the Leaf Area Index change rate multiyear, I found An internal Error: I use the MODIS Leaf Area Index Product MOD15A2H to Calculate the Annual LAI Max value yearly. Use the ee....
1
vote
0answers
59 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 ...
2
votes
1answer
61 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 ...
0
votes
0answers
21 views

Area-specific relative risk

How can I obtain area-specific relative risks from a regression model. For example, I have this model in R data<-data.frame(outcome=c(0,1,2,0,10,20,20,10,2,0,1,2),var1=c(1,1,1,1,2,2,2,2,1,1,1,1),...
0
votes
1answer
182 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 ...
1
vote
1answer
82 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 ...
0
votes
0answers
98 views

SPML (spatial panel models): Unbalanced panels

I am making spatial panel models from the splm library but I cannot make a fixed or random effects model because it comes out that it is an unbalanced panel. Data data and shp files Reproducible ...
0
votes
0answers
21 views

Stepwise regression method in GEE

I would like to use the stepwise regression method to compute time series analysis in GEE, is there a way to implement this regression model in GEE.
2
votes
1answer
44 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 ...
0
votes
0answers
28 views

Does Euclidean distance consider multiple points nearby?

I have a hypothetical setting I am trying to use to better understand Euclidean distance. So of course this example will only work for the purpose of understanding a concept, rather than actually ...
1
vote
0answers
37 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 ...
1
vote
0answers
33 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 ...
0
votes
0answers
128 views

How to loop through a list of lists and safe the output coefficiants?

I have split a list of NDVI and climate data into small csv. files with 34 years of data each. Every 34 years should be split into two parts depending on a conflict year, saved in the same table and a ...
0
votes
0answers
30 views

Average Kernel Density as Dependent Variable in Regression

I have point pattern dataset and I estimated a kernel surface from it. I want to use a census tracts average kernel density as a dependent variable in regression analysis. Is OLS appropriate or should ...
2
votes
1answer
234 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 ...
2
votes
1answer
352 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 ...
1
vote
0answers
111 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: ...
0
votes
0answers
10 views

How to apply svm to a dataset with a numerical (not categorical) dependent variable?

Context: I have some band values from a sentinel - 2 derived .tiff I now want to make a prediction regarding areas where i have no actual field data i.e. make a carbon map of sorts Libraries are: ...
1
vote
1answer
36 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. ...
1
vote
0answers
92 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. ...
3
votes
2answers
60 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, ...
2
votes
0answers
44 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 + ...
2
votes
1answer
207 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) ...
1
vote
1answer
172 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 ...
-1
votes
1answer
312 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', ...
1
vote
1answer
285 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 ...
0
votes
0answers
165 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 ...
4
votes
0answers
5k 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 ...
2
votes
0answers
111 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 ...
0
votes
1answer
107 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: ...
1
vote
0answers
27 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 ...
1
vote
1answer
385 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 ...
0
votes
1answer
165 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 ...
1
vote
0answers
43 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 ...
0
votes
0answers
145 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 ...
2
votes
0answers
225 views

Estimating a Rotated Pole given a gridded dataset with lat/lons at each point

I have netcdf dataset that I think is regular gridded dataset using a Rotated pole mapping, but the rotated pole information is wrong. For those not familiar with Rotated Poles, the cartopy ...
0
votes
0answers
365 views

Running Linear Regression with multiple Rasters converted to a numpy array in Python

What I did was an array with Rasters from 2000 to 2018. It's temporal Resolution is 16 days. I more or less wrote my code by combining scripts that I found matching my problem. This is what I got so ...
1
vote
1answer
76 views

Running convert Raster to Point Features in arcpy returns an error

I'm trying to convert a bunch of rasters to point features to further build a regression of those. Is it possible to do that without a conversion using arcpy? If not what am I doing wrong converting? ...
0
votes
0answers
120 views

Calculate Bare Soil Line Intercept using R

I am using an R package called BSL (Bare soil line), package is at https://rdrr.io/cran/landsat/man/BSL.html. The BSL package uses R's lmodel2 function (https://cran.r-project.org/web/packages/lmodel2/...
3
votes
0answers
703 views

Nonlinear regression in Google Earth Engine on each pixel in an image collection using GEE's servers

I am attempting to optimize the parameters for a double-logistic function on an annual MODIS NDVI time series in Google Earth Engine. I have previously looked at Non Linear Regression in Google Earth ...
1
vote
0answers
67 views

Reducing “noise” in spatially regressed points

I'm working on spatial data on a grid. I have two variables that I think to be correlated and I would like to build a model (see Fig attached). I did some exploratory analyses following the ...
1
vote
1answer
216 views

Calculating Bare Soil Line using R?

I am using a package in R called BSL (Bare soil line), package is at https://rdrr.io/cran/landsat/man/BSL.html. I've used it successfully to run regression line for my soil study area but it is ...
1
vote
0answers
776 views

How to check spatial autocorrelation correctly in a glm

I ran a binomial glm as below and from plotting observations i know that there are many observations close to each other and i expect them to be highly correlated. For this matter after selecting the ...
0
votes
1answer
235 views

Different trend test result with modifiedmk and zyp package in R

I am running two sen slope trend tests in R, the first with the modifiedmk package and the second with the zyp package. I don't understand why with the zyp package the resulting raster raster.mkt2 is ...
1
vote
1answer
1k views

Apply mann-kendall analysis on stacked raster in R as a function

I want to run a mann-kendall trend analysis with pre-whitening on a stacked raster and then save the resulting tau, sen-slope and p_value. I am currently doing this by looping through every pixel but ...