I'd appreciate any help or suggestions about what I might be doing wrong or what might be causing the problem I'm encountering.
I can see the matrix "W' in the using directory, though my machine doesn't recognize the file extension. I have also tried this without specifying Mata in the weights matrix-generating portion and specifying wfrom(Stata) in the second portion.
cd [my working directory]
spwmatrix gecon latitude longitude, wtype(inv) wname(W) eignvar(eigenW) mataf replace
(At this point I merge the eignvar into my main dataset, I am certain this step proceeds correctly)
spmlreg [varlist], weights(W) wfrom(Mata) eignvar(eigenW) model(durbin) robust
the error I'm receiving is:
st_store(): 3200 conformability error
splagvar_lagmyvar(): - function returned error
<istmt>: - function returned error
One thing that I have noticed is that spwmatrix won't let me generate the weights matrix from within my main dataset. For some reason, it returns the error that "Spherical latitudes must be in [-90,90]", when the exact same operation will work in an identical version of the dataset with the rest of the variables dropped. This is why I've been merging the two together.
Thanks in advance!
I can see the matrix "W' in the using directory, though my machine doesn't recognize the file extension. I have also tried this without specifying Mata in the weights matrix-generating portion and specifying wfrom(Stata) in the second portion.
cd [my working directory]
spwmatrix gecon latitude longitude, wtype(inv) wname(W) eignvar(eigenW) mataf replace
(At this point I merge the eignvar into my main dataset, I am certain this step proceeds correctly)
spmlreg [varlist], weights(W) wfrom(Mata) eignvar(eigenW) model(durbin) robust
the error I'm receiving is:
st_store(): 3200 conformability error
splagvar_lagmyvar(): - function returned error
<istmt>: - function returned error
One thing that I have noticed is that spwmatrix won't let me generate the weights matrix from within my main dataset. For some reason, it returns the error that "Spherical latitudes must be in [-90,90]", when the exact same operation will work in an identical version of the dataset with the rest of the variables dropped. This is why I've been merging the two together.
Thanks in advance!