Skip to content
Prev 28048 / 29559 Next

Spatial Durbin Model (lagsarlm) with two different Weight Matrices

On Sun, 3 May 2020, Wingeier, Dominik wrote:

            
Please post plain text only, if need be using LaTeX markup for symbols. 
This is illegible.
Don't apply advive given in a different setting to a different problem. 
Your model may be:

y = \rho W_1 y + X \beta + W_2 X \gamma + \varepsillon

This is not a Durbin model unless W_1 == W_2; if it was a Durbin model, 
you would use

spatialreg::lagsarlm(y ~ X, ..., Durbin=TRUE, ...)

with the DGP

y = (I - \rho W)^{-1} (X \beta + W X \gamma + \varepsillon).

Your DGP is equivalent to X_a = [X, W_2 X] and

y = (I - \rho W_1)^{-1} (X_a \beta + \varepsillon)

So construct your formula something like:

spatialreg::lagsarlm(y ~ X_1 + I(lag(lw_2, X_1)) + ..., ...)

not using Durbin, by creating the spatial lags of each continuous X 
variable one-by-one. If any X are factors, your job will be even more 
involved. I would doubt strongly that you have a motivation for mixing 
spatial weights in this way, I cannot see any obvious reason for using W_1 
for y and W_2 for X.

Hope this clarifies,

Roger