BookmarkSubscribeRSS Feed
aminkarimid
Lapis Lazuli | Level 10

Hello everybody,

I have panel data and want to do Hausman test for fixed and random effect.

Here is my code:

Proc glm DATA=Sampledata_adjvol;
 absorb TRD_STCK_CD;
 class TRD_EVENT_ROUFOR;
 model adjusted_volume_5 = TRD_EVENT_ROUFOR / solution;
run;

Without using PROC PANEL or the panel procedure, how can I do that test?
Thanks in advance. 

4 REPLIES 4
SASKiwi
PROC Star

I'm the first to admit I know nothing about this test but this link suggests using the FIT statement on PROC MODEL:

 

http://support.sas.com/kb/30/333.html

 

 

alexchien
Pyrite | Level 9

I am not familiar with the Hausman test either but i think you can use PROC MIXED (in SAS/STAT) to get all the param estimates to compute the Hausman test statistic. Hope this helps.

aminkarimid
Lapis Lazuli | Level 10
Thanks @alexchien,
However the assumptions of this model are restricted:
The primary assumptions underlying the analyses performed by PROC MIXED are as follows:
The data are normally distributed (Gaussian).
The means (expected values) of the data are linear in terms of a certain set of parameters.
The variances and covariances of the data are in terms of a different set of parameters, and they exhibit a structure matching one of those available in PROC MIXED.
alexchien
Pyrite | Level 9

How about PROC NLMIXED? alex

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 3510 views
  • 0 likes
  • 3 in conversation