楼主: caijiebama
5441 6

[一般统计问题] 请我stata的hausman 的命令程序怎么用 [推广有奖]

  • 0关注
  • 0粉丝

已卖:157份资源

大专生

75%

还不是VIP/贵宾

-

威望
0
论坛币
353 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
400 点
帖子
30
精华
0
在线时间
67 小时
注册时间
2009-11-28
最后登录
2014-3-23

楼主
caijiebama 发表于 2011-9-23 14:22:59 |AI写论文
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 ...
关键词:hausman ausman Stata tata Man 程序 模型 如何

沙发
蓝色 发表于 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)


已有 1 人评分经验 收起 理由
SpencerMeng + 100 观点有启发

总评分: 经验 + 100   查看全部评分

藤椅
caijiebama 发表于 2011-9-23 15:08:34
谢谢了 本人是初学者所以很多东西不懂

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

报纸
bigbell 发表于 2012-8-16 23:09:33
搞不懂啊

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

7
SpencerMeng 在职认证  发表于 2014-4-29 12:40:13
qui xtreg y x1 x2 x3,fe
est store fe
qui xtreg y x1 x2 x3,re
est store re
hausman fe
很简单吧  呵呵 给好评哦 亲
有问题来发帖,来发帖没问题!
我尊重版规,一切为了学术!
Stata专版版规:https://bbs.pinggu.org/thread-1651470-1-1.html

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

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2025-12-9 07:51