BookmarkSubscribeRSS Feed
Calcite | Level 5


In a multiple comparison test, I'm trying to get SAS to calculate an LSD, an average LSD, or even the LSD it uses for each comparison.  I've read a couple of similar question/answers from 2012-2013--but I just can't get them to work. I get a nice table with the results of the test (i.e. "LS-means with the same letter are not significantly different").  (sorry, I don't know why it switched to bold and I don't know how to get it back.) But I want to know the LSD value SAS used to arrive at the conclusion the values are or are not significantly different.  Here is the code I used:

ods rtf file='171214-0929_lines.letters.rtf';

ods rtf select LSMlines;

PROC glimmix DATA=datain plots=studentpanel;BY Year;

CLASS Rep Genotype;

MODEL Yieldkgha = Genotype /DDFM=KR ;


LSMEANS Genotype /lines diff;

ods output diffs=lsr covparms=error lsmeans=means;


ods rtf close;


Could someone modify this to generate the LSD values? 

The '/lines diff" generates a nice table.  But I don't understand why it doesn't include more information about the multiple comparison tests.





Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.


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
  • 0 replies
  • 1 in conversation