Professional Documents
Culture Documents
Example in Excel
If the ANOVA shows that the differences
between treatments are significant
We reject Ho
There are at least two treatments that are significantly different
BUT – which ones???
We need to compare the means
Comparison between treatment means:
Where:
t = critical value from the t-distribution table
MSw = mean square within, obtained from the results of your
ANOVA test
n = number of scores used to calculate the means
Step 1: Find the t-critical value. The t-critical value for α=0.05, dfw = 36 is 2.028).
Make sure you are using the Within groups DF from your results!
Step 2: Insert the given values, the MSE from your results (I used 26.65 from Within groups on the
above table) the t-distribution value from Step 2 into the least significant difference formula:
LSD = 2.028 √ (26.65 * (2/10)) = 4.68.
Put this number aside for a moment,
Step 3: Calculate ybar1-ybar2 from the results. For this example, we get -8.7.
Step 4: Compare Step 2 and Step 3. If |ybar1-ybar2| ≥ LSD1,2 then you can reject the
null hypothesis that the means are the same (H0:μ1 = μ2). Our value of 8.7 is larger than
4.68 so we can reject the null hypothesis.
Using SAS for ANOVA and Means
Comparisons
DATA COMPARE;
INPUT GROUP$ VALUE;
DATALINES;
A 13
A 23
A 18
A 19
A 24
B 33
B 36
B 41
B 34
B 48
C 67
C 64
C 59
D 39
D 41
D 42
;
PROC ANOVA;
CLASS GROUP;
MODEL VALUE=GROUP;
MEANS GROUP/LSD;
RUN;
The ANOVA Procedure
Corrected 19 5634.000000
Total
PROC ANOVA;
CLASS GROUP;
MODEL VALUE=GROUP;
MEANS GROUP/LSD, DUNCAN, TUKEYS;
RUN;
END