**stata空间面板回归xsmle 命令遇到r(3200)错误

**先说空间计量的安装
****代码安装
help spatwmat
**发现有个链接,点进去就行
*后面空间面板回归xsmle发现出现以下错误
/
: 3200 conformability error
_xsmle_est(): - function returned error
: - function returned error
*/

**有两种解决方法
第一,对x和y进行log
**第二,重新设置矩阵,假设只有15个城市,只用15
15的矩阵,具体语句如下:
***weight2是设置好的矩阵

spatwmat using C:\Users\Dell\Desktop\weight2.dta,n(w) standardize
spatgsa pergdp,weights(w) moran
spatgsa pergdp,weights(w) moran two

xtset city year
xsmle y x1 x3 ,wmat(w) model(sdm) durbin( lngraduatenum ) robust nolog fe 


Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐