楼主: forfun740920
6866 2

請問SAS的 Hausman Test 怎麼寫呢?? [推广有奖]

  • 0关注
  • 0粉丝

学前班

40%

还不是VIP/贵宾

-

威望
0
论坛币
10 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
60 点
帖子
1
精华
0
在线时间
0 小时
注册时间
2009-1-16
最后登录
2009-1-16

楼主
forfun740920 发表于 2009-1-16 03:54:00 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
我因為這個問題困擾很久了

看到大陸有這個網站很棒

希望有人可以幫助我

我有先到SAS help看過了

不過好像沒什麼幫助就是了

請善心人士給我點意見吧!!!
二维码

扫码加我 拉你入群

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

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

关键词:hausman ausman sas的 test Aus test hausman SAS

回帖推荐

chenchhuai 发表于3楼  查看完整内容

/*Hausman test */proc sort data=work.experiment;       by city year;run;proc tscsreg data=work.experiment;      model  y= x1 x2 x3;   id city year;run;

本帖被以下文库推荐

沙发
yongyitian 发表于 2009-1-16 08:39:00

Google HAUSMAN test gives following. You may like to look at the colored PROCs:

Date: Fri, 19 Nov 2004 11:07:51 -0800 Reply-To: cassell.david@EPAMAIL.EPA.GOV Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> From: "David L. Cassell" <cassell.david@EPAMAIL.EPA.GOV> Subject: Re: Hausman test for random effect assumptions In-Reply-To: <21d8a6de.0411190040.2e2d84a2@posting.google.com> Content-type: text/plain; charset=US-ASCII

Tracy Li <lisiqi77@YAHOO.COM> wrote: > I have an unbalanced panel data with 100 countries and 12 years. > Originally I consider treating year as fixed and country as random. > According to Hsiao's book about panel data, GLS estimator is only > consistent when two assumptions are met. He suggests the Hausman > specification test for this. The test compares the coefficients from a > fixed ("covariance") model to those from a random model ("GLS"). > > I am using proc mixed but could not find any way to do the test in > SAS. Do I need to use macro? Please help.

First off, I suppose you could do this via PROC MIXED, but you really have SAS/ETS situation here. You need to do time series modeling of (what may be) panel data.

Once you consider that, then the solution becomes simpler. If you do your work in PROC MODEL, then you can get Hausman's specification test for free. All you have to do is include the option HAUSMAN in the FIT statement. Then you get a comparison of your fitting methods using Hausman's m-statistic. Similarly, if you find that PROC TSCSREG handles your panel data properly, then you can use Hausman's test in it. I don't know of any other SAS procs which automatically do Hausman's test, but there may be more.

Before you go much farther though, I would recommend that you look further into the Hausman test. R.C. Fair ("Specification, Estimation, and Analysis of Macroeconometric Models", 1984) has a discussion on why Hausman's test fails for a number of popular econometric models. So beware. As the old Latin statisticians said, _caveat_utor_.

HTH, David -- David Cassell, CSC Cassell.David@epa.gov Senior computing specialist mathematical statistician

已有 1 人评分学术水平 热心指数 收起 理由
peijiamei + 2 + 2 好的意见建议

总评分: 学术水平 + 2  热心指数 + 2   查看全部评分

藤椅
chenchhuai 发表于 2009-2-16 13:51:00

/*Hausman test */

proc sort data=work.experiment;
       by city year;
run;
proc tscsreg data=work.experiment;
      model  y= x1 x2 x3;
   id city year;
run;

已有 1 人评分经验 论坛币 收起 理由
bakoll + 3 + 3 精彩帖子

总评分: 经验 + 3  论坛币 + 3   查看全部评分

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

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