Skip to content
Prev 25081 / 29559 Next

Error in Spatial lag model

On Sun, 20 Nov 2016, Miluji Sb wrote:

            
Did you examine this object? What did the print method tell you?
This object "_org" does not yet exist ...
So you omitted to say that the data are (unbalanced) panel data ...
You have defined weights for one object (possibly a cross section), and 
then try to use them on a different object with a different number of 
rows. If you really want to do this, you need a Kronecker product of the 
spatial weights to take the panel structure of your data into account. 
Further, I doubt strongly that you need to create WX manually, because 
spatial lags of all the required variables are created by model fitting 
functions in the splm package.

Roger