I am a Stata 16 user and am trying to create a spatially lagged variable using a spatial weighting matrix within a panel data framework. I have created the spatial weighting matrix using the following command:
. spmatrix create contiguity W.
Can you advise me how to convert this matrix into a spatially lagged variable? What would be the next codes to achieve this?
. spmatrix create contiguity W.
Can you advise me how to convert this matrix into a spatially lagged variable? What would be the next codes to achieve this?
Comment