我在运作陈强老师空间面板模型命令xsmle时遇到障碍,请大家指点我一下。在安装好相关文件后,我是这样运行的:
1. 首先调用面板数据product.dta
use product.dta,clear
2. 设定面板
xtset state year
3. 进行数据变换
gen lngsp=log(gsp)
gen lnpcap=log(pcap)
gen lnpc=log(pc)
gen lnemp=log(emp)
4.用spmat命令 调用空间权重矩阵(原书中调用权重usaww.spmat没有加双引号)
spmat use usaww using “usaww.spmat”
5. 用spmat summarize 命令查看一下空间权重(原书中没有这个命令)
spmat summarize usaww, links
显示结果为
|
| Matrix | Description |
|
| Dimensions | 48 x 48 |
| Stored as | 48 x 48 |
| Links |
| total | 214 |
| min | 1 |
| mean | 4.458333 |
| max | 8 |
6.正式运行xsmle命令
xsmle lngsp lnpcap lnpc lnemp ,wmat(usaww) model(sdm) robust nolog (完全是按照书中提示)
显示结果为:
Warning: All regressors will be spatially lagged
<istmt>: 3499 _InIt_OpTiMiZaTiOn_xsmle() not found
r(3499);
不知道我在运行的时候哪个地方有问题,麻烦各位给我一些指点。多谢!