全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 MATLAB等数学软件专版
12818 15
2012-09-13
我想对面板模型的选择进行LM检验,发现在程序包jplv7中已经有一个LMsarsem_panel的M文件,我是否可以直接在命令窗口输入命令
LMsarsem_panel(results,W,y,x);
得到如下结果:
LM test no spatial lag, probability          =    0.3218,   0.5705
robust LM test no spatial lag, probability   =    0.3437,   0.5577
LM test no spatial error, probability        =    4.0933,   0.0431
robust LM test no spatial error, probability =    4.1152,   0.0425

就这样子简单操作可以吗?
二维码

扫码加我 拉你入群

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

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

全部回复
2012-9-13 10:00:33
肯定不可以呀,那里面的程序数据模拟显示结果是针对所给列子的数据结果嘛,你得先调用你的数据和微调后的程序,做完回归后做LM检验!
二维码

扫码加我 拉你入群

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

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

2012-9-13 10:06:16
bling1987 发表于 2012-9-13 10:00
肯定不可以呀,那里面的程序数据模拟显示结果是针对所给列子的数据结果嘛,你得先调用你的数据和微调后的程 ...
我是先调用了我的数据了并进行了按自己要求的调整,再做LM error和lag检验,就直接在命令窗口输入了
LMsarsem_panel(results,W,y,x)这个函数,可不可行啊,还有一个问题就是不是先做着个判断事sar还是sem然后再回归的吗,谢谢
二维码

扫码加我 拉你入群

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

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

2012-9-13 10:23:10
那应该可以吧,我只是建议你做个不考虑空间的OLS和SAR/SEM做个比较,具体的一些检验你可以看看Elhorst2009年讲的《Spatial panel data Models 》这篇文章,说的很详细的。
二维码

扫码加我 拉你入群

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

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

2012-9-13 10:27:16
bling1987 发表于 2012-9-13 10:23
那应该可以吧,我只是建议你做个不考虑空间的OLS和SAR/SEM做个比较,具体的一些检验你可以看看Elhorst2009年 ...
好,谢谢你
二维码

扫码加我 拉你入群

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

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

2012-9-13 10:41:41
LM test no spatial lag, probability          =    0.3218,   0.5705
robust LM test no spatial lag, probability   =    0.3437,   0.5577
LM test no spatial error, probability        =    4.0933,   0.0431
robust LM test no spatial error, probability =    4.1152,   0.0425
   - if LM test for spatial lag is more significant than LM test for spatial er
> ror,
     and robust LM test for spatial lag is significant but robust LM test for
     spatial error is not, then the appropriate model is spatial lag model.
     Conversely, if LM test for spatial error is more significant than LM test
     for spatial lag and robust LM test for spatial error is significant
     but robust LM test for spatial lag is not, then the appropriate specificat
> ion
     is spatial error model, [Anselin-Florax (1995)].
        
   - robust versions of Spatial LM tests are considered only when
     standard versions (LM-Lag or LM-Error) are significant
        
   - General Spatial Model is used to deal with both types of spatial dependenc
> e,
     namely spatial lag dependence and spatial error dependence
        
   - Spatial Error Model is used to handle spatial dependence due to omitted
     variables or errors in measurement through the error term
        
   - Spatial Autoregressive Model (SAR) is also known as Spatial Lag Model
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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