全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
7733 9
2020-10-07
悬赏 10 个论坛币 未解决
空间面板数据,用拉格朗日乘数检验判断选择SDM SAR SEM 哪一个模型更合适的stata命令,类似这个图是用什么命令做出来的?

2.png

原图尺寸 74.02 KB

2.png

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2020-10-16 22:18:10
已解决
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2020-11-4 17:33:47
我是你的小星星呀 发表于 2020-10-16 22:18
已解决
请问这是怎么做的呀
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2020-11-15 22:56:18
我是你的小星星呀 发表于 2020-10-16 22:18
已解决
请问楼主怎么做的,可以提供下命令吗729567702@qq.com
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2020-11-16 19:49:02
回复楼上,改做了LR和Wald 检验
xsmle Lngdp Score Goveff SecondaryIndustry Investment Lnpopulation stateowned ,fe model(sdm) wmat(W) type(both) nolog noeffects     #sdm模型
est store sdm_a
xsmle Lngdp Score Goveff SecondaryIndustry Investment Lnpopulation stateowned ,fe model(sar) wmat(W) type(both) nolog noeffects      #sar模型
est store sar_a
xsmle Lngdp Score Goveff SecondaryIndustry Investment Lnpopulation stateowned ,fe model(sem) emat(W) type(both) nolog noeffects      #sem模型
est store sem_a
lrtest sdm_a sar_a                        #LR test spatial lag
lrtest sdm_a sem_a                       #LR test spatial error

Wald 检验:
xsmle Lngdp Score Goveff SecondaryIndustry Investment  , wmat(W) model(sdm) robust nolog effects fe r                     #在LR之后
(xsmle y x1 x2 x3 x4)
test [Wx]Score = [Wx]Goveff = [Wx]SecondaryIndustry = [Wx]Investment = [Wx]Lnpopulation = [Wx]stateowned =0             #test [Wx]x1 = [Wx]x2 = 。。

testnl ([Wx]Score =-[Spatial]rho*[Main]Score ) ([Wx]Goveff =-[Spatial]rho*[Main]Goveff ) ([Wx]SecondaryIndustry =-[Spatial]rho*[Main]SecondaryIndustry ) ([Wx]Investment =-[Spatial]rho*[Main]Investment ) ([Wx]Lnpopulation =-[Spatial]rho*[Main]Lnpopulation ) ([Wx]stateowned =-[Spatial]rho*[Main]stateowned )
#testnl ([Wx]x1 =-[Spatial]rho*[Main]x1 ) ([Wx]x2 =-[Spatial]rho*[Main]x2) ([Wx]x3 =-[Spatial]rho*[Main]x3)
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2020-11-16 19:50:24
变量个数可能不对,自己做的笔记用了省略,大致是这个意思,X 和Y的选取看个人所需
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群