*: 3200 conformability error解决方案
·
**stata空间面板回归xsmle 命令遇到r(3200)错误
**先说空间计量的安装
****代码安装help spatwmat
**发现有个链接,点进去就行
*后面空间面板回归xsmle发现出现以下错误
/: 3200 conformability error
_xsmle_est(): - function returned error
: - function returned error
*/
**有两种解决方法
第一,对x和y进行log
**第二,重新设置矩阵,假设只有15个城市,只用1515的矩阵,具体语句如下:
***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
更多推荐
所有评论(0)