I've generated a Queen spatial weighting matrix using the spwmatrix command in STATA, and intended to use the matrix for spatial lag model for cross-sectional model. After some search, I did not find an effective code or tool to carry out this step in STATA. Many thanks if any code or suggestion can be brought up.
The latest sp package of STATA cannot generate the Queen matrix, so I did not use it.
Cheers.