Skip to content
Prev 27953 / 29559 Next

"spdep": check whether a spatial model fully controls for spatial correlation

Thank you, Roger.

I ran Hausman.test() for both my spatial error model (p-value < 2.2e-16) and my spatial Durbin error model (p-value = 3.693e-11). My understanding of these two tests is that my SDEM performs better than my SEM, but there is still room for better specification of my SDEM. Is my understanding correct?

I know that the function "impacts()" applies to spatial lag models only. Is there a R function or a formula that I can use to compute the total impacts based on the X and lag.X coefficients in a SDEM?

Best
Gary