BookmarkSubscribeRSS Feed
AMF
Calcite | Level 5 AMF
Calcite | Level 5

Hello,

I was wondering how to obtain OR estimates and confidence intervals for a fixed effects model I am fitting with GLIMMIX (GLM with logit link)- so basically a logistic regression.

I am able to obtain predicted probabilities at each level of the interaction with the lsmeans statement:

lsmeans var_a*var_b/ilink cl, and realize that I can probably exponentiate the parameter estimates for each interaction term to obtain odds ratios (provided I've set my referent group for both var a and var b), but the confidence intervals are tricky. Can I use a command or option in the lsmeans statement to automate this and make it easier?

Thanks!

1 REPLY 1
SteveDenham
Jade | Level 19

The LSMEANS options DIFF, OR and CL will give you the odds ratios with confidence limits.  It is harder for interactions, but I suppose that by using the SLICEDIFF option you can narrow this to the odds ratios of interest.

Steve Denham

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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