Hi Again!
Hope this is the last time I'm forced to bother you, as the sas help doc is for me
I wanted to test for heteroscedasticity in my panel data sample and eventually correct it.
My model:
FE=FELO FEUP FE_L FELOWER FEUPER;
FELO - dummy (1 if below FE_L Q1)
FEUP - dummy (1 if above FE_L Q1)
FE_L - laged FE
FELOWER = FELO*FE_L
FEUPER =FEUP*FE_L
On SAS Help I can only find the example with "incomes" which is not as complicated as my...
I would really appreciate your time and concern.
Hello and thanks for the question.
There are two parts to your question. If you want to conduct a Breusch-Pagan test which is requested as an option on the MODEL statement in PROC PANEL.
The second, and frankly what I would do, is to just assume you have heteroskedasticity and autocorrelation and correct for it using the HAC=NEWEYWEST option on the MODEL statement.SAS/ETS(R) 13.1 User's Guide
If you wanted to employ simply Heteroskedastic-corrected se's you can do that here.
Good luck and let us know if you need anything else. -Ken
Hello and thanks for the question.
There are two parts to your question. If you want to conduct a Breusch-Pagan test which is requested as an option on the MODEL statement in PROC PANEL.
The second, and frankly what I would do, is to just assume you have heteroskedasticity and autocorrelation and correct for it using the HAC=NEWEYWEST option on the MODEL statement.SAS/ETS(R) 13.1 User's Guide
If you wanted to employ simply Heteroskedastic-corrected se's you can do that here.
Good luck and let us know if you need anything else. -Ken
Hi,
I was trying to follow your steps using SAS 9.4, but it is not working: I need to test if there is any hetroscedasticity and also how I can correct it.
proc panel data=mydata;
model y=x1 x2 x3 x4/RANTWO HAC=NEWEYWEST;
id firm time;run;
Please help!
..Rohit
In 9.4 (SAS/ETS 14.1), the specification is now:
HAC(neweywest94)
or
NEWEYWEST (parameters inserted for gamma, rate and constant, if you want something other than the default)
Hope this helps.
Steve Denham
Hey, Thanks for your reply! I have access to 9.4 (SAS/ETS 13.2).
To correct heteroscedasticity, I have succesfully tried and used:
proc panel data=mydata;
model y=x1 x2 x3 x4/RANTWO HAC(BANDWIDTH=NEWEYWEST94);
id firm time;run;
Could you please suggest some way through which I can check for hetroscedsaticty in my panel data before looking for any correction ?
Thanks.
Rohit
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.
Find more tutorials on the SAS Users YouTube channel.