求问大神,为什么我运用xsmle老是显示:
*: 3200 conformability error
_xsmle_est(): - function returned error
<istmt>: - function returned error
百度了说是
矩阵的维数和变量的id数不匹配 ,但是我的数据矩阵维数是01矩阵,也就是31个省份是31*31,id代表着省份也是31个省份,原始数据就是2004年到2022年31个省份的不同指标,怕不收敛取得也都是ln,运行代码如下:
use D:\statashicao\zongshujv.dta
spatwmat using D:\statashicao\W01.dta, name(W) //调用空间权重矩阵,命名为W
spatwmat using W01.dta, name(W) standardize
xtset year id
xsmle lngdp lnH1 lnH2 lnH3,fe model(sdm) wmat(W) type(ind) nolog effects
est store ind
xsmle lngdp lnH1 lnH2 lnH3,fe model(sdm) wmat(W) type(time) nolog effects
est store time
xsmle lngdp lnH1 lnH2 lnH3,fe model(sdm) wmat(W)type(both)nolog effects
est store both
lrtest both ind,df(18) //H0:空间杜宾模型可以简化为空间滞后模型
lrtest both time,df(18) //H0:空间杜宾模型可以简化为空间误差模型
求问哪里出问题了呢