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

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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
  • 916 views
  • 0 likes
  • 2 in conversation