BookmarkSubscribeRSS Feed
BrandaLee
Calcite | Level 5

Dear all,

I have a GLMM model and my code runs smoothly:  

 

proc glimmix data=production_change;
class Subject Group (ref='C');
model Response = Group / dist=binomial link=logit cl;
     random intercept / subject = Subject;
lsmeans Group / adjust=Tukey plots=meanplot ilink cl;
run;

 

The only issues is with the "lsmeans / plots=" statement. I want to draw the graph using the fitted probability, not the estimated means (which SAS currently does for me). That is, I want to use the data in the red frame below to draw a graph, not using the "estimate" and its CL.

stackquestionillustration.png

 

Anyone knows how to do that? Or do I need an ods statement, or a proc sgplot statement? I am quite new to this.

I appreciate your time and effort to help!

1 REPLY 1
Rick_SAS
SAS Super FREQ

use the ILINK suboption to the PLOTS=MEANPLOT option:

 

lsmeans Group / adjust=Tukey plots=meanplot(ilink) 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
  • 1186 views
  • 1 like
  • 2 in conversation