Skip to content
Prev 24293 / 29559 Next

Help: impact measures in spatial panel durbin model

On Wed, 20 Apr 2016, Youba Ndiaye wrote:

            
All of the impacts methods expect k=m. A sketch of a possible approach is:

library(spdep)
example(columbus)
lw <- nb2listw(col.gal.nb)
f <- CRIME ~ INC + HOVAL + I(lag(lw, HOVAL))
mod <- lagsarlm(f, data=columbus, lw)
summary(mod)

by constructing the (dense) S(W)_r matrices differently for the non-Durbin 
and Durbin variables:

iIrW <- invIrW(lw, mod$rho)
S_INC <- iIrW %*% (mod$coefficients[2]*diag(nrow(columbus)))
S_HOVAL <- iIrW %*% ((mod$coefficients[3]*diag(nrow(columbus))) -
   (mod$coefficients[4]*listw2mat(lw)))

Then you can get the direct and total impacts in the usual way:

dir_INC <- sum(diag(S_INC))/nrow(columbus)
dir_HOVAL <- sum(diag(S_HOVAL))/nrow(columbus)
tot_INC <- sum(c(S_INC))/nrow(columbus)
tot_HOVAL <- sum(c(S_HOVAL))/nrow(columbus)

with indir_* = tot_* - dir_*.

No inference tools are available, though.

It might be possible to inject zero WZ coefficient values and covariances 
for non-included WX variables in order to use the standard impacts 
methods, but you need strong reasons apriori to assume that they are zero; 
going with regular Durbin will be likely to be more robust, and will give 
a clear test of the insignificance of the indirect impacts.

Hope this helps,

Roger