全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
5404 6
2011-09-23
悬赏 2 个论坛币 已解决
请我stata的hausman 的命令程序怎么用
我要检验xtreg logy logx1 logx2  logx3,fe   和 xtreg logx1 logx2 logx3,re
如何编写hausman的命令来选择到底固定效应模型还是随机效应模型
求解

最佳答案

蓝色 查看完整内容

查hausman命令的help啊 Examples Typing . webuse nlswork4 . xtreg ln_wage age msp ttl_exp, fe . estimates store fixed . xtreg ln_wage age msp ttl_exp, re . hausman fixed ., sigmamore presents Hausman's specification test, which tests the appropriateness of the random-effects estimator (xtreg, re). Typing . web ...
二维码

扫码加我 拉你入群

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

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

全部回复
2011-9-23 14:23:00
查hausman命令的help啊



Examples

    Typing

        . webuse nlswork4
        . xtreg ln_wage age msp ttl_exp, fe
        . estimates store fixed
        . xtreg ln_wage age msp ttl_exp, re
        . hausman fixed ., sigmamore

    presents Hausman's specification test, which tests the appropriateness of the random-effects
    estimator (xtreg, re).

    Typing

        . webuse sysdsn3
        . mlogit insure age male
        . est store all
        . mlogit insure age male if insure != "Uninsure":insure
        . est store partial
        . hausman partial all, alleqs constant

    will perform a Hausman test for independence of irrelevant alternatives (IIA).

    When one estimator uses equation names and the other does not, specify the equations() option
    to force the comparison.  This is illustrated in the comparison of the OLS estimator and the
    estimator of the regress part of the heckman model:

        . sysuse auto
        . regress mpg price
        . est store reg
        . heckman mpg price, sel(foreign=weight)
        . hausman reg ., eq(1:1)

    Comparison of the probit model and selection equation of the heckman model

        . probit foreign weight
        . est store probit_for
        . heckman mpg price, sel(foreign=weight)
        . hausman probit_for ., eq(1:2)


二维码

扫码加我 拉你入群

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

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

2011-9-23 15:08:34
谢谢了 本人是初学者所以很多东西不懂
二维码

扫码加我 拉你入群

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

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

2012-8-6 06:50:48
很奇怪的是,如果我用random effect, number of obs就与实际有的相同了。。。。这是为什么呢
二维码

扫码加我 拉你入群

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

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

2012-8-16 23:09:33
搞不懂啊
二维码

扫码加我 拉你入群

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

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

2014-3-9 10:02:50
ygpz1989 发表于 2012-8-6 06:50
很奇怪的是,如果我用random effect, number of obs就与实际有的相同了。。。。这是为什么呢
请问楼主的这个问题解决了么
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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