Statistical Procedures

Programming the statistical procedures from SAS
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-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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