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