Skip to content
Prev 29198 / 29559 Next

Impacts for panel SDM and SDEM models in splm (revisited)

On Wed, 8 Mar 2023, Denys Dukhovnov via R-sig-Geo wrote:

            
Both released splm (1.6-2) and the especially the development version, 
which may be installed with install.packages("splm", 
repos="http://R-Forge.R-project.org"), have more support for estimating 
for models including the spatially lagged response (SLM/SAR, SDM, etc.). 
They do not, however, support impact measures for Durbin-type models (SLX, 
SDEM, etc.). It seems that impacts are hard to combine with the various 
estimation methods for spatial panel models.
No, it would not work, because in the sense of Vega & Elhorst (2015) and 
LeSage (2014), SAR/SDM etc. are global impacts, requiring sampling from 
the fitted model for inference, while SLX and SDEM are local impacts, with 
the total impacts being a linear combination of the coefficients on the 
unlagged and lagged covariates.
In the cross-sectional case, impacts methods are provided, but you can 
also use multcomp::glht() because fitted model objects have coef() 
and vcov() methods, which glht() can use:

library(spdep)
data(columbus)
lw <- nb2listw(col.gal.nb)
library(spatialreg)
mod_SDEM <- errorsarlm(CRIME ~ INC + HOVAL, data=columbus, lw,
  Durbin=TRUE)
summary(impacts(mod_SDEM))
summary(multcomp::glht(mod_SDEM, c("INC + lag.INC == 0", "HOVAL + 
lag.HOVAL == 0")))

The difference in the p-values is because the spatialreg case (this will 
be changed!), the alternative= is assumed to be "greater", not "two-sided" 
as in the multcomp case, and cannot (yet) be changed by the user.

If splm provided coef() and modified vcov() methods (modified to name the 
columns and rows of the returned objects), then progress would be 
possible, but I'm unsure whether a spatial Durbin error model can be 
fitted without adding thw WX columns manually.

Hope this clarifies,

Roger