A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

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
1
vote
1answer
19 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
0answers
18 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
37 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', ...
0
votes
0answers
37 views

Exporting image of modeled data in Google Earth Engine results in too much mask

I am using harmonic regression in Google Earth Engine to model NDVI values for 2011. I would like to export the modeled values for every semi-monthly time-step (twice a month). However, if there was ...
1
vote
1answer
42 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
48 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 ...
2
votes
0answers
468 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 ...
1
vote
0answers
42 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
31 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
26 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
132 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
66 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 ...
0
votes
0answers
24 views

Getting lm.LMtests error due to neighborhood list being different length?

I am trying to run the lm.LMtests function on a regression model I have built. I am using 2940 census tracts (down from 2948 due to missing data), but the neighborhood list I am utilizing has the ...
0
votes
0answers
35 views

Extract random effects from CARBayes output

We conducted a study at the U.S. census tract level looking at the relationship between environmental factors and social mobility in the ten largest U.S. cities. We used CARBayes::S.CARmultilevel in R ...
1
vote
0answers
27 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
66 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
143 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
206 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
44 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
82 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/...
2
votes
0answers
329 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
65 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
131 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
495 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
161 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 ...
0
votes
1answer
564 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 ...
0
votes
1answer
148 views

How do you find the appropriate spatial weight to use for a spatial analysis? [closed]

I am currently about to run a spatial regression (OLS, Lag, Error etc) for my dataset. My dataset contains 1000 randomly generated points throughout the utilisation distribution for my animals (so, ...
0
votes
1answer
232 views

Error in gstat.formula.predict(d$formula, newdata, na.action = na.action, : NROW(locs) != NROW(X): this should not occur

I'm trying to perform regression kriging using the code creating variogram m <- vgm(var(soil$Ba), "Sph", sqrt(areaSpatialGrid(slope))/4, nugget=0) v <- fit.variogram(variogram(Ba~RASTERVALU, ...
0
votes
0answers
104 views

Linear spatial regression of Sentinel-2 products?

I would like to run a spatial regression to refine the spatial resolution of Sentinel-2 20 m bands by using the 10 m 8A band. So the idea is to have Bands at 20 m as dependent variables and band 8 A ...
1
vote
1answer
392 views

Linear regression between every 3×3 pixels between two rasters using R

I have two rasters of precipitation and elevation, PPT and ELEV. They have equal number of rows and columns.I want to create a new raster of precipitation lapse rate (GRADIENT) with same number of ...
1
vote
0answers
370 views

How should I normalize my data - based on population of an area /neighbourhood or population of the entire city? [closed]

I am studying the driving's forces of crime in a particular city. I have some independent values, e.g. percentage of the head of the household with low education per zone, the percentage of ...
3
votes
0answers
165 views

Performing multiple regression of time series data using R? [closed]

I am working with MODIS time series data, and I want to stack a stack object to prepare my data for multiple regression. I have AMSR (soil moisture) as a response variable and I have some ...
2
votes
0answers
578 views

Make linear regression in multiple raster layers

I have a question about multiple raster layer regression using R or Arcgis. I would like to predict biomass using some Vegetation Index - VI (NDVI, EVI, SAVI, OSAVI...). and generate R² and RMSE maps ...
1
vote
2answers
484 views

Extract seasonality and trend values for each time in a MODIS time series

I'm trying to construct a MODIS temporal series as shown in this thread: Harmonic MODIS trend in Google Earth Engine? But I'd like to plot, if possible, the values for trend and seasonality for each ...
3
votes
3answers
1k views

How to conduct logistic regression between two rasters

I have two rasters. The first raster is a region showing sinkholes(depressions) of the region(cell values are 1 for sinkholes and 0 for non-sinkhole cells). The second raster is the TPI(Topographic ...
-1
votes
1answer
162 views

Predicting Enhanced Vegetation Index using Random Forest in R [closed]

I am a master's student and I am trying to use radar observables derived from SAR imagery to predict Landsat 8 Enhanced Vegetation Index (EVI) for different seasons. I have extracted EVI and various ...
2
votes
0answers
875 views

Multiple Linear Regression Analysis in QGIS (with SAGA Toolbox)

I'm attempting to run a multiple linear regression analysis using QGIS, through the SAGA toolbox. However, the QGIS UI does not allow me to choose predictors -- it seems entirely absent from the UI. ...
0
votes
1answer
73 views

What is the W_{variablename} variable in GeoDa's spatial lag model?

What is the W_{variablename} variable in GeoDa's spatial lag model output? The geoda workbook does not give any explanation. As far as my knowledge goes a spatial lag regression model does not need ...
0
votes
1answer
823 views

GEE cloud-free Sentinel2 and linear Regression [closed]

GEE, Sentinel and linear Regression I am using GEE (Google Earth Engine) to compute a Sentinel-2 based change analysis. What I would like is basically a linear regression per pixel, with the slope as ...
0
votes
1answer
1k views

Google Earth Engine: Evapotranspiration Linear Regression MODIS

I am trying to do a Linear Regression about Evapotranspiration using MODIS and I get this error when I try to inspect the value of the pixels in the result layer: "Error Array index 1 out of bounds. ...
0
votes
0answers
259 views

Google Earth Engine: Linear Regression problem to download the image

I made this code to get a Linear Regression using the function SAVI in my own collection but it is not working. Does anyone know why? // Simple regression of year versus NDVI. // Define the ...
-2
votes
1answer
529 views

Linear Regression Google Earth Engine

I would like to do a linear regression with an NDVI collection. Does anyone know how can I do the regression using Google Earth Engine?
1
vote
0answers
35 views

Is it possible to to have higher variances for predictions in Universal Kriging?

I am using gstat to do Universal kriging. I am finding that the variances for the predictions of a hold out sample (i.e., new spatial locations for which I want to determine the response variable) ...
0
votes
2answers
739 views

Predicting geographic location in R?

I am very new to the world of GIS and spatial statistics, but I have a very large dataset consisting of many points with geographic coordinates and a bunch of other variables for every point. I ...
1
vote
0answers
241 views

Small sample size for geographically weighted regression; limitations

I am studying West Nile Virus risk factors in a specific county using mosquito surveillance data over a ten year study period. The highest resolution of the mosquito data that could be obtained was at ...
0
votes
2answers
276 views

Poisson's regression in ArcGIS?

I am using ArcGIS regression tools OLS and GWR for evaluating the association between dengue incidences and weather parameters, land use/cover, and demographic characteristics of the study area. ...
5
votes
1answer
2k views

Access to attribute in rasterlayer in R

I read an ADF file in R: kommuner <- raster( "../../../10-Data/Kommunne_i_Norge_2000/Kommuner2000_100m_100m/100x100_2k/w001001.adf" ) It contains three attributes: > kommuner class :...
1
vote
1answer
753 views

Using R to do logistic geographically weighted regression(GWR) prediction

I'm using the R package "GWmodel" to do the logistic GWR, but this package doesn't provide the prediction function for generalized GWR(Binomial/Poisson). How can I do the Logistic GWR prediction using ...
5
votes
1answer
114 views

Ignoring multi-collinearity in spatial stepwise regression modeling?

We have used multi-linear regression (stepwise) approach to perform spatial modeling with parameters derived from Remote Sensing data. The outcome of the statistically significant components produce ...
0
votes
1answer
251 views

Getting Negative values in Regression based Biomass model!

I am using Multi Linear Regression (stepwise method) to estimate above ground biomass. Different spectral indices and other variables mostly derived from Landsat 8 OLI are used to check potential ...