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

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