全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 统计软件培训班VIP答疑区
2367 2
2014-03-04
连老师:       您好!

*              ::高级部分::
          *          计量分析与Stata应用
          *       ==========================
          *         第五讲  工具变量法与GMM
          *       ==========================
          *               5.3  GMM

*-- 检验是否存在内生性问题

   *= Durbin-Wu-Hausman 检验
   第570-578行


use hsng2.dta, clear  
     ivregress gmm rent pcturban (hsngval = faminc reg2-reg4), small
        est store gmm
     regress rent pcturban hsngval              
        est store ols

     hausman gmm ols     
     hausman gmm ols, sigmamore      
     hausman gmm ols, sigmaless   

我的Hausman 检验出现错误:

.      hausman gmm ols     
hausman cannot be used with vce(robust), vce(cluster cvar), or p-weighted data
r(198);
不知何故,谢谢连老师!


二维码

扫码加我 拉你入群

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

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

全部回复
2014-3-6 09:19:14
[新版本的 Hausman 检验发生了一些变化。
需要把
ivregress gmm rent pcturban (hsngval = faminc reg2-reg4), small
修改为
ivregress 2sls rent pcturban (hsngval = faminc reg2-reg4), small

因为选择 gmm 估计时,相当于进行了异方差稳健型标准误的调整。
二维码

扫码加我 拉你入群

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

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

2014-3-7 08:39:31
哦,原来如此,新版本不一样。
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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