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
Problem with ranking observations in a uniform distributionDear all, I have a dataset where i have monthly observations of firms during multiple years. The fo…
"Estimates save" issue for using regression estimates from memory with outreg2Hi, I am having issues using the outreg2 command/estimates command. I have run a 3 regressions and s…
Stata 16 on CentOS/RHEL 7Hello, Has anyone had any luck getting Stata 16 to run on CentOS/RHEL 7? It seems like Stata has mo…
Count total number of non-missing strings in a rowHi there! I am working on extracting information from text data and was wondering if there is a way…
If id in the data has too many levels (12k), how to set memory size?I have 12k individuals (id). When I run fixed effect models with i.id in Sata, I got errors. How to …
Subscribe to:
Post Comments (Atom)
0 Response to Compatability error while creating a spatial lagged explanatory variable
Post a Comment