Hello Colleagues

Trust you are all fine,

Please I have been struggling for days on estimating some spatial diagnostic test on my model. The stata command I am using is spatdiag command.

I am working on a panel data with 759 observations. However, I am using a 33x33 matrix. Each time I run the spatdiag command after the regression model, I get this error "Matrix W is 33x33, regression has been carried out on 759 obs. To run -spatdiag- weights matrix dimension must equal N. of obs"

This problem is in similitude with this https://www.statalist.org/forums/forum/general-stata-discussion/general/1531048-how-to-run-lm-tes-to-check-of-spatial-auto-correlation-in-panel-data, but no response.

I would be glad if I can get a comment on how to go about. I look forward to hearing from you

Similar questions and discussions