全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 EViews专版
10538 5
2009-05-30

Dear all :

It seems we can not just click button to get Hausman test and Sargan test in EViews' window , so I have some ideas

about that by 2SLS method .

model :  yi = xi*(beta) + ui   , i = 1,....,n

Hausman test:

Ho : xj is exogeneous , Ha : not Ho , j = 1 , ... , k , where k<n

step 1 : run y on x (all x) --> save ui(hat) &

            run xj on all z --> save vj(hat) , where z is instrument variables and vi is from : xj = z*r + vj

step 2 : run ui(hat) on  x (all x) and vj --> save R^2

step 3 : compute LM=n*R^2 ~ X^2(k) [Chi-squared distribution with degree of freedom k]

Sargan test :

Ho: z is exogeneous , Ha: not Ho

step 1 : run y on x (all x) by instrument variable method --> save residuals ui( IV hat )

step 2: run ui( IV hat ) on z --> save R^2

step3 : compute LM =n*R^2 ~X^2(m-k) [Chi-squared distribution with degree of freedom m-k]

            where m is the number of instrument variables

Hope this will help !

[此贴子已经被作者于2009-5-30 23:52:18编辑过]

二维码

扫码加我 拉你入群

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

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

全部回复
2009-5-31 00:46:00
谢谢,虽然没看怎么明白~
二维码

扫码加我 拉你入群

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

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

2010-8-4 01:51:04
楼主解释的很清楚!
可以详细说一下compute LM =n*R^2 ~X^2(m-k)怎么操作吗?要输入command还是哪里可以直接click?
二维码

扫码加我 拉你入群

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

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

2010-9-2 20:36:00
Thanks a lot,
althought Idon't understand.
二维码

扫码加我 拉你入群

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

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

2010-12-18 07:23:55
1# dlovea 谢谢。貌似Eviews7提供Sargan:
J-statistic is simply the Sargan statistic
二维码

扫码加我 拉你入群

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

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

2016-5-16 11:18:23
Note that these residuals are based on X, not X hat.
二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

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