I am trying to create a spatially lagged X variable to run a SLX type model
Issue: I get a compatibility error message when trying to generate the WX variable
I have strongly balanced panel data with a width of 25. Consequently, my inverse distance matrix is a 25x25 matrix. So I don't quite understand why the matrices would be incompatible i.,e. W(25x25)*X(25x1).
Code:
spmat lag double wTemperatureLag10 ID2 TemperatureLag10
where ID2 is my 25x25 inverse distance matrix and TemperatureLag10 is the X variable that I want to turn into a spatial lag WX variable.
Output:
. spmat lag float wInfectionRateLag10 ID2 InfectionRate
*: 3200 conformability error
SPMAT_lag(): - function returned error
<istmt>: - function returned error
thank you for your response.
Related Posts with Compatability error while creating a spatial lagged explanatory variable
Match value labels from two different datasetsDear Statalisters I have two different datasets with information on States and Districts. Since the…
How to test *coefficient estimates across samples using the same model?Dear All, I have the below models. I run the same model in two different samples (firms which have …
msymbolI'm quite new to state. I wanted to make the graph I created (which I'm also not sure of if its corr…
Producing three way graphHello Statalist I would like to produce a three way graph on stata like the one provided in the att…
Testing for Serial Correlation and Individual EffectsHi, Sorry if I am sending a duplicate question, but I found no equivalent question in the list. I a…
Subscribe to:
Post Comments (Atom)
0 Response to Compatability error while creating a spatial lagged explanatory variable
Post a Comment