BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
shenflow
Obsidian | Level 7

Estimating the following:

 

proc panel data = input;
	id gvkey rankyear;
	model pers_a_diff = readj_quant readj_avg 
		 				/ fixtwo noint;
	ods output FitStatistics = fit;
run;
quit;

yields:

shenflow_0-1595506050521.png

 

However, I need HAC standard errors. Inserting the HAC option in the statement above as follows:

proc panel data = input;
	id gvkey rankyear;
	model pers_a_diff = readj_quant readj_avg 
		 				/ fixtwo noint hac;
	ods output FitStatistics = fit;
run;
quit;

yields the following results:

shenflow_0-1595506262302.png

 

 

That is, I do not get any standard errors at all. Why is that?

 

EDIT: What strikes me as even more surprising is that NEWEYWEST in fact yields standard errors (and NEWEYWEST are a special case of HAC standard errors as far as I am concerned).

1 ACCEPTED SOLUTION

Accepted Solutions
SteveDenham
Jade | Level 19

Here is something buried in the documentation about HAC:

 

This option is not available for between models and cannot be combined with the HCCME option.

 

I suspect that your model falls into the first category.

 

SteveDenham

View solution in original post

1 REPLY 1
SteveDenham
Jade | Level 19

Here is something buried in the documentation about HAC:

 

This option is not available for between models and cannot be combined with the HCCME option.

 

I suspect that your model falls into the first category.

 

SteveDenham

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