BookmarkSubscribeRSS Feed
rfrancis
Obsidian | Level 7

Hello, I'm searching for a method (preferably a SAS Proc) that will generate standard errors for a cross-sectional OLS model that are robust to heteroscedasticity as well as clustering in the cross-sections. There is no time-series dimension, hence PROC MODEL will not work. PROC REG will address the heteroscedasticity but will not address clustering.  PROC SURVEYREG will address the clustering, but does address heteroscedasticity. I'm curious if demeaning the data based on the cluster variable (which is SIC or industry) will address the clustering issue. If so, then it is possible to use the HCCME options with PROC REG to address the heteroscedasticity. I grateful for any insight.  Rick

2 REPLIES 2
SteveDenham
Jade | Level 19

Hi Rick,

 

Seems like I recommend it for everything, but PROC GLIMMIX may be an option.  Heteroscedasticity can be specified for RANDOM effects (which is what I would assume describes your clusters), and cross-sectional models can be fit using the RESIDUAL option in a second RANDOM statement.  Take a look at the documentation, and see if it might be serviceable.

 

SteveDenham

rfrancis
Obsidian | Level 7

Thank you Steve!  I will definitely follow your advice!  Rick

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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