Need help for setting...
I am not getting 'SNK Grouping' information by using the following code:
DATA chol_treat;
length treat $ 7;
do treat = 'A', 'B', 'Placebo';
do i = 1 to 10;
input result @;
output;
end;
end;
drop i;
datalines;
220 190 180 185 210 170 178 200 177 189 160 168 178 200 172 155 159 167 185 199 240 220 246 244 198 238 277 255 190 188
RUN;
PROC ANOVA data = chol_treat;
title 'Analysis of Cholesterol Meication data';
class treat;
model result = treat;
means treat / SNK;
RUN;
I run your exact code and I see the SNK output. Can you show us screen captures of your output by including the screen capture in your reply by clicking on the camera icon here? Do not provide screen captures as attachments.
Add option linestable to the means statement.
@PGStats and @PaigeMiller have given you everything you need to get SNK output. Now I am going to ask a question -why SNK, when it is known to be one of the poorest methods for controlling type I error amongst all the available multicomparison methods. I recommend familiarizing yourself with the work of Peter Westfall and in particular the book Multiple Comparisons and Multiple Tests Using SAS. This link from the GraphPad documentation is short and explains the reasoning well:
SteveDenham
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.