Skip to content
Prev 23565 / 29559 Next

R: Spatial Durbin Model with regimes in a cross section framework

On Wed, 21 Oct 2015, Loredana Mirra wrote:

            
Please provide the output of traceback() after the error has occurred. I 
think that if the same model can be fitted with type="lag", but not with 
"mixed", then the lagged X variables are possibly to blame.

Maybe also try to use lmSLX() on the same formula, data and listw objects, 
to see whether you also see failures in the lagged X variables. The 
underlying create_WX() function does check for NAs, but may not do it 
correctly - possibly for this formula.

If this sounds hard, do:

save(highways, listw, file="chow_error.RData")

and make the "chow_error.RData" file available on a link (possibly 
off-list if the data are private).

Hope this helps,

Roger