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;

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 706 views
  • 1 like
  • 2 in conversation