BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
analyst_work
Obsidian | Level 7

Hi,

I am trying to run a glimmix logistic regression model. My dependent variable has 2 levels (yes/no) and I am trying to run the model just with one independent variable (with 2 levels) for now. Once I have run the model, I want to also get the absolute % predicted value, which I am not sure how to do.

 

proc glimmix data = test;

class y ;

model x (event = '1') = y /dist=binary link= logit;

run;

 

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
StatDave
SAS Super FREQ

Add an LSMEANS statement with the ILINK option. The predicted probabilities are in the Mean column. Add the CL option if you want confidence limits

lsmeans y / ilink cl;

View solution in original post

1 REPLY 1
StatDave
SAS Super FREQ

Add an LSMEANS statement with the ILINK option. The predicted probabilities are in the Mean column. Add the CL option if you want confidence limits

lsmeans y / ilink cl;

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