BookmarkSubscribeRSS Feed
cd2011
Calcite | Level 5

Hi,

I am running a GMM with proc model to correct for heteroscedasticity, but I am having some trouble understanding the SAS diagnostics. My code looks something like that,

1. proc model data=test;

2. parms const  a b c;

3. instruments vara varb varc ;

4. y= const+ a*vara+b*varb+c*varc;

5. fit y / white breusch =(1 vara  varb varc );                                                            

6. fit y / GMM white breusch =(1 vara varb varc );                                                            

run;

My understanding is that step 5 gives simple ols results and breush pegan test will show heteroscedasticity if there is any.

but step 6 corrects for heteroscedasticity and hence will give same parameter estimates as step 5 but different standard errors, but breusch-pegan step at this point should show no heteroscedastictiy.

But in my application I see exact same breusch-pegan test value from step 5 and step 6. Am I wrong in interpreting it or am I doing something wrong?

Thanks for any help.

1 REPLY 1
cd2011
Calcite | Level 5

As it turns out, I was infact mis-interpreting the results. The data is still heteroscedastic, GMM is only giving heteroscedastic-consistent variance covarince matrix. 

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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
  • 1 reply
  • 1319 views
  • 0 likes
  • 1 in conversation