楼主: zjzcs87@163.com
12989 15

[问答] matlab空间面板LM_error和LM_lag检验 [推广有奖]

  • 2关注
  • 7粉丝

已卖:1份资源

教授

15%

还不是VIP/贵宾

-

威望
0
论坛币
103 个
通用积分
25.2701
学术水平
3 点
热心指数
5 点
信用等级
3 点
经验
118402 点
帖子
111
精华
0
在线时间
2246 小时
注册时间
2012-5-15
最后登录
2025-5-11

楼主
zjzcs87@163.com 发表于 2012-9-13 09:57:34 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
我想对面板模型的选择进行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

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

扫码加我 拉你入群

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

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

关键词:MATLAB matla atlab Error 空间面板 检验 空间 matlab

沙发
bling1987 发表于 2012-9-13 10:00:33
肯定不可以呀,那里面的程序数据模拟显示结果是针对所给列子的数据结果嘛,你得先调用你的数据和微调后的程序,做完回归后做LM检验!
因为简单,所以快乐!

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

板凳
bling1987 发表于 2012-9-13 10:23:10
那应该可以吧,我只是建议你做个不考虑空间的OLS和SAR/SEM做个比较,具体的一些检验你可以看看Elhorst2009年讲的《Spatial panel data Models 》这篇文章,说的很详细的。
因为简单,所以快乐!

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

地板
lihoujian 发表于 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
懂得放弃才会拥有

7
zjzcs87@163.com 发表于 2012-9-13 10:45:41
lihoujian 发表于 2012-9-13 10:41
- if LM test for spatial lag is more significant than LM test for spatial er
> ror,
     and ro ...
请问,这次做判断用的吧?

8
lihoujian 发表于 2012-9-13 10:46:05
using stata is more suitable for your data,and it will help you to choose your appropriate model
enjoy
懂得放弃才会拥有

9
zjzcs87@163.com 发表于 2012-9-13 10:49:51
lihoujian 发表于 2012-9-13 10:46
using stata is more suitable for your data,and it will help you to choose your appropriate model
e ...
now i feel so difficult to use matlab,just a rookie

10
lihoujian 发表于 2012-9-13 10:50:08
reference here

dj.pdf
下载链接: https://bbs.pinggu.org/a-1175305.html

783.39 KB

懂得放弃才会拥有

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2026-1-11 15:59