15 questions
3
votes
0
answers
53
views
How can I integrate regression weights into a Spatial Lag Model?
I am trying to estimate a spatial lag model with the package 'spdep' in R. I am using the function 'lagsarlm'. It seems that this function does not natively support regression weights (unlike for ...
4
votes
1
answer
218
views
Performing spatial regressions with huge datasets without crashing the computer
I'm running a spatial regression (SAR: spatial autoregressive regression) in R using the spmodel package. My dataset is a sf object formed by centroids.
This dataset has 100'781 observations, and I ...
0
votes
1
answer
722
views
Running a spatial durbin model (SDM) for a panel data
I'm trying to run a Spatial Durbin Model for a spatial panel data. My idea is to run the dependent variable y over my independent variables x1 and x2. I've tried so many options but all of them give ...
0
votes
0
answers
183
views
How long does the spmatrix take to create contiguity matrixes?
I've been trying to do spatial regressions for a paper. Now I have the problem that I need contiguity or inverse distance matrixes for this. I've been using an official shapefile for the communities ...
1
vote
1
answer
555
views
Robust Standard Errors in spatial error models
I am fitting a Spatial Error Model using the errorsarlm() function in the spdep library.
The Breusch-Pagan test for spatial models, calculated using the bptest.sarlm() function, suggest the presence ...
0
votes
1
answer
2k
views
Value Error when fitting data with statsmodel OLS method
I am trying to fit my data with the stats model OLS method. While following from a tutorial, imported all the necessary libraries;
from scipy import stats
import statsmodels.formula.api as sm
import ...
1
vote
1
answer
821
views
Is there an R function that tests for spatial autocorrelation in residuals of a regression created by errorsarlm / lagsarlm / sacsarlm
My question relates to the functions errorsarlm(), lagsarlm() and sacsarlm() of the "spdep" package.
I would like to test the residuals of a regression created by one of the functions above ...
1
vote
1
answer
229
views
Using categorical variable in spreg models
I would like to employ a spatial regression model, using the spreg package in Python. My data consists of numeric variables, but I also have a categorical land cover variable (with 7 classes) that I ...
3
votes
0
answers
442
views
Spatiotemporal mixed-effects in R: Too large groups in correlation structure
I am trying to fit a mixed-effect model with a spatiotemporal correlation structure using lme {nlme}.
The data comprises 37936 lon (x) + lat (y) grid-cells (18968 male + 18968 female) with density (...
6
votes
1
answer
996
views
Is there an R package that runs "Spatial Vector Autoregression"?
I am looking for an R package which can run "Spatial Vector Autoregression".
tandfonline.com/doi/full/10.1080/17421770701346689
According to Chen and Conley (2001), this is a "vector ...
2
votes
1
answer
795
views
How to test for spatial non-stationarity in R to determine if local regression model is needed?
I have a dataset for which I implement a regression model and from which I assume that the coefficients vary locally. If a spatial non-stationarity is given, it makes sense to run a local regression ...
1
vote
0
answers
1k
views
Spatial Durbin Model (.lagsarlm codes): I cannot run a summary of impacts with z-values and p-values of regressors
I have not much time left to run my spatial regression model, thus I would be thankful for help.
I do not know how to run impacts function for spatial durbin model (.lagsarlm) so that I can see the p-...
0
votes
0
answers
711
views
How to fix: "Error: cannot allocate vector of size 5.1 Gb" when running a spatial error model?
I'm running a spatial error model on a large dataset (n=26,000) for a hedonic price analysis. I have built a nearest neighbor (k=10) spatial weights file and listw object. However, when I try running ...
2
votes
1
answer
474
views
Standard errors of impacts in a spatial regression lagsarlm
I am using a spatial lag and durbin regression models and I would like to estimate the standard errors of the impacts. Any ideas on how to do this?
Reproducible example below using a durbin model
# ...
3
votes
1
answer
876
views
texreg table for impacts of spatial lag model
I am using spdep to run a spatial regression using a Durbin lag model. This type of model returns direct, indirect and total effects for each regression coefficient and their level of significance.
Is ...