Skip to content
Prev 1324 / 29559 Next

Sampling from a SAR error model

Roger,

Thanks for the code.  Just now had time to get back to the problem.
Sorry it took so long.

you wrote,
I am a little confused by this statement.  I thought that the only
difference between the lag and error model is that in the error
model, spatial "spill overs" are restricted to the error term.  I
was thinking that lambda would always equal rho.  Not just in the
null model.  I was also thinking that the spatial lag model would
not be properly identified without at least on covariate, since
absent any variation in the systematic component of the model (Xb),
what would the spatial lag model mean? If you premultipy a vector of
constants by (I-pW)^-1, you just get back another vector of
constants.  A couple of other observations.

When the sample size in your example is increased, the lambda and
rho estimates are quite a bit closer to their simluated values.

I added a single covariate in your example, and the recovery of
labmda and rho preformed about as well as the null models.

Although your example didn't recover the simulated values exactly. 
They were close enough to make me think that there is something
funny about my example. So this is where I now turn.

thanks for your input!

Sam



Quoting Roger Bivand <Roger.Bivand at nhh.no>:
hist(estimates2[,7],nclass=n.bins(estimates2[,7]),probability=TRUE)
hist(estimates3[,7],nclass=n.bins(estimates3[,7]),probability=TRUE)