Professional Documents
Culture Documents
ANOVA&Comparisons
ANOVA&Comparisons
JACOB SEYBERT
10/01/09
ANOVA Calculations
Source SS df MS F
2 options:
Post-hoc tests
Planned comparisons
PROC GLM;
CLASS categorical_variable;
MODEL dv=iv;
MEANS categorical_variable /TUKEY SCHEFFE
BON;
Code:
Example 1 Output:
Tukey
Post-Hoc Test Output:
Bonferroni
Post-Hoc Test Output:
Scheffe
Post-Hoc Differences
Power: Tukey>Bon>Scheffe
How about type I error then?
Also Tukey>Bon>Scheffe
Basically, Tukey is the most powerful but also has the
largest type I error.
That is, Tukey is the most advantageous in terms of
power but the least advantageous in terms of avoiding
type I error.
Planned Comparisons
Learning Suggestions
Mean of the first two groups with the mean of the last two
groups.
First two groups compared to each other.
Last two groups compared to each other.
Weights have to add to zero!
Planned Comparisons
PROC GLM;
CLASS categoricalvar;
MODEL DV = IV;
CONTRAST “Contrast Title1” categoricalvar 1 -3 1 1;
CONTRAST “Contrast Title2” categoricalvar 0 0 -1 1;
Planned Comparison Example
Code:
Planned Comparison Output
Planned Comparison & Post Hoc
IV “rewgrp”
1 = low-reward condition
2 = mixed-reward condition
3 = high-reward condition
DV “commit” scale that measures employee
commitment (Range 0 to 36)
Example3 Code: