BookmarkSubscribeRSS Feed
xipazpor
Calcite | Level 5

I am using PROC MIXED to examine differeces across 5 different treatments. I would like to know how to enable my 'LSMEANS variable = treatment / ADJUST=TUKEY;' statement to display differences using letters in the output. Any advice is appreciated.

 

I am using the following code:

%MACRO MIXED1 (DATASET, DEPVAR, ID);
PROC MIXED DATA = &DATASET;
CLASS TRT BLOCK PEN SEX;
MODEL &DEPVAR = TRT/RESIDUAL OUTP=STUDENTRESIDUAL;
RANDOM BLOCK;
LSMEANS TRT/PDIFF=all;
STORE STOREDATA;
RUN;
 
PROC PLM RESTORE=STOREDATA;
LSMEANS TRT/PDIFF=ALL PLOT=MEANPLOT CL LINES;
RUN;
 
PROC PRINT DATA = STUDENTRESIDUAL;
WHERE ABS(STUDENTRESID) GT 3.5;
RUN;
 
PROC UNIVARIATE DATA=STUDENTRESIDUAL NORMAL PLOT;
VAR STUDENTRESID;
RUN;
 
PROC KDE DATA=STUDENTRESIDUAL;
UNIVAR STUDENTRESID;
RUN;
 
QUIT;
%MEND;

%MIXED1 (MasterFile, pigWt1, 1);

 

1 REPLY 1
PaigeMiller
Diamond | Level 26

I'm not sure what you mean by "using letters".

 

If you mean something like the LINES option in the LSMEANS statement in PROC GLM, as far as I know that is not available in PROC MIXED.

 

If you mean something else, please explain in a lot more detail.

--
Paige Miller

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1412 views
  • 0 likes
  • 2 in conversation