BookmarkSubscribeRSS Feed
sdan23
Calcite | Level 5

Dear SAS users,

I have a cross-sectional data but I would like to do state fixed effects with state robust standard errors. My outcome is binary so I was going to use Proc Logistic with the Strata function but it seems like I can't do robust standard errors (I think). Proc Genmod can adjust for robust standard but I couldn't figure out how to do the fixed effects. 

 

So am I only left with the option to use proc glimmix? Did I miss something? Is there a way I can compress the output of the coefficients for state?

 

proc glimmix data=data;

  class X2 state;

  model y = x1 x2 x3 state/dist=binary link = logit oddsratio(diff=all) solution;

 random intercept / subject=state;

run;

 

Thank you very much in advance!

 

1 REPLY 1

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 852 views
  • 1 like
  • 2 in conversation