ANOVA & Comparisons JACOB SEYBERT 10/01/09 ANOVA - PowerPoint PPT Presentation

1 / 29
About This Presentation
Title:

ANOVA & Comparisons JACOB SEYBERT 10/01/09 ANOVA

Description:

ANOVA & Comparisons JACOB SEYBERT 10/01/09 ANOVA Calculations Hays and Brannick suggest slightly different methods. Results in same conclusion. From GLM 2 notes, see ... – PowerPoint PPT presentation

Number of Views:86
Avg rating:3.0/5.0
Slides: 30
Provided by: jseybertC
Category:

less

Transcript and Presenter's Notes

Title: ANOVA & Comparisons JACOB SEYBERT 10/01/09 ANOVA


1
ANOVA Comparisons
  • Jacob Seybert
  • 10/01/09

2
ANOVA Calculations
  • Hays and Brannick suggest slightly different
    methods.
  • Results in same conclusion.
  • From GLM 2 notes, see ANOVACalculations.xls

3
Total Sum of Squares
4
Within Sum of Squares
5
Between Sum of Squares
6
ANOVA Source (Summary) Table
7
ANOVA
  • What you have done so far
  • Proc GLM DATA Data1
  • CLASS Condition
  • MODEL retentioncondition
  • Run
  • This tells us if there are differences between
    the groups.
  • What if we want to know where those differences
    are?

8
Comparing Means
  • 2 options
  • Post-hoc tests
  • Planned comparisons
  • Post-hoc tests evaluate differences between the
    groups after a significant F value has been
    found.
  • Planned comparisons replace the main effect F
    value and instead test specific hypotheses.

9
Post-Hoc Tests
  • Many different methods of performing post-hoc
    tests.
  • Bonferroni
  • Scheffe
  • Tukey HSD
  • REGWQ

10
Post-Hoc Tests
  • Tukey's Studentized Range for honest significant
    difference (HSD) Test Controls the Type I family
    wise error (FEW) rate, has power advantage when
    compare all possible pairs).
  • Bonferroni t Test Controls the Type I family
    wise error rate, but overcorrects for Type I
    error.
  • Scheffe's Test (modified F-test) Controls the
    Type I family wise error rate, but over
    conservative.

11
Post-Hoc in SAS
  • SAS template code
  • PROC GLM
  • CLASS categorical_variable
  • MODEL dviv
  • MEANS categorical_variable /TUKEY SCHEFFE BON
  • Can do all 3 at a time for comparison, or just do
    one.

12
Example 1!
  • Import Data ANOVAExample1.xls
  • Code

13
Example 1 Output
  • Typical ANOVA output

14
Post-Hoc Test Output
  • Tukey

15
Post-Hoc Test Output
  • Bonferroni

16
Post-Hoc Test Output
  • Scheffe

17
Post-Hoc Differences
  • Power TukeygtBongtScheffe
  • How about type I error then?
  • Also TukeygtBongtScheffe
  • 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.

18
Planned Comparisons
19
Learning Suggestions
  • Brief overview here
  • Lecture provides details
  • Read Hays 423-467
  • Watch online example

20
Planned Comparisons
  • Substitutes for an overall ANOVA test.
  • Provides for the specific test of group
    comparisons
  • You decide these prior to the study
  • Is group 1 different than groups 2 3?
  • Is groups 1-3 different than groups 4-6?

21
Planned Comparisons
  • Weights are applied to group means based on the
    question being addressed
  • 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!

22
Planned Comparisons
  • Comparisons must be independent linear
    combinations with normal distributions and equal
    variances.
  • Then they are said to be Orthogonal
  • There are only J-1 orthogonal comparisons.
  • Can test for this by seeing if the products of
    the weights assigned to each sum to zero.
  • Pay attention in class for more detail!

23
Planned Comparisons in SAS
  • PROC GLM
  • CLASS categoricalvar
  • MODEL DV IV
  • CONTRAST Contrast Title1 categoricalvar 1 -3
    1 1
  • CONTRAST Contrast Title2 categoricalvar 0 0 -1
    1

24
Planned Comparison Example
  • Import Data ANOVAExample1.xls
  • Code

25
Planned Comparison Output
26
Planned Comparison Post Hoc
  • Can perform post-hoc tests with planned
    comparisons.
  • Problematic due to high Type I error.
  • Not recommended.
  • PROC GLM datad1
  • Class rewgrp
  • Model commitrewgrp
  • CONTRAST '2 vs 13' rewgrp .5 -1 .5
  • Means rewgrp/Tukey Scheffe Bon Hovtest
  • Run

27
Another Example!
  • Import Data BrannickData.sas
  • 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)

28
Example3 Code
  • Add in the following code
  • PROC GLM datad1
  • Class rewgrp
  • Model commitrewgrp
  • CONTRAST '2 vs 13' condition .5 -1 .5
  • Means rewgrp/Tukey Scheffe Bon Hovtest
  • Run

29
What did you find?
Write a Comment
User Comments (0)
About PowerShow.com