Anthony Greene1 Advanced ANOVA 2-Way ANOVA Complex Factorial Designs I.The Factorial Design II.Partitioning The Variance For Multiple Effects III.Independent Main Effects of Factor A and Factor B IV.Interactions
Anthony Greene2 The Source Table Keeps track of all data in complex ANOVA designs Source of SS, df, and Variance (MS) –Partitioning the SS, df and MS –All variability is attributable to effect differences or error (all unexplained differences) Total Variability Effect Variability (MS Between) Error Variability (MS Within)
Anthony Greene3 Partitioning of Variability for Two-Way ANOVA Total Variability Effect Variability (MS Between) Error Variability (MS Within) Factor A Variability Stage 1 { { Stage 2 Factor B Variability Interaction Variability
4 Source Table for 1-Way ANOVA Effect Variability Error Variability
5 2-Way ANOVA Used when two variables (any number of levels) are crossed in a factorial design Factorial design allows the simultaneous manipulation of variables A1A2A3A4 B1A1B1A2 B1A3 B1A4 B1 B2A1 B2A2 B2A3 B2A4 B2
6 2-Way ANOVA For Example: Consider two treatments for mood disorders 1.This design allows us to consider multiple variables 2.Importantly, it allows us to understand Interactions among variables PlaceboProzacZanexBourbon DepressionA1B1A2 B1A3 B1A4 B1 AnxietyA1 B2A2 B2A3 B2A4 B2
7 2-Way ANOVA Hypothetical Data: 1.You can see that the effects of the drug depend upon the disorder 2.This is referred to as an Interaction PlaceboProzacZanexBourbon Depression Anxiety
8 Example of a 2-way ANOVA: Main Effect A Daytime Heart rate Nighttime Heart rate No-Meditation7562 Mediation7463
9 Example of a 2-way ANOVA: Main Effect B Daytime Heart rate Nighttime Heart rate No-Meditation7574 Mediation6463
10 Example of a 2-way ANOVA: Main Effect A & B Daytime Heart rate Nighttime Heart rate No-Meditation8071 Mediation7160
11 Example of a 2-way ANOVA: Interaction Daytime Heart rate Nighttime Heart rate No-Meditation7562 Mediation6563
Anthony Greene12 Partitioning of Variability for Two-Way ANOVA Total Variability Effect Variability (MS Between) Error Variability (MS Within) Factor A Variability Stage 1 { { Stage 2 Factor B Variability Interaction Variability
Anthony Greene13 Partitioning of Variability for Two-Way ANOVA Total Variability Effect Variability (MS Between) Error Variability (MS Within) Factor A Variability Stage 1 { { Stage 2 Factor B Variability Interaction Variability Numerator for Omnibus F-ratio Denominator for all F-ratios
Anthony Greene14 Partitioning of Variability for Two-Way ANOVA Total Variability Effect Variability (MS Between) Error Variability (MS Within) Factor A Variability Stage 1 { { Stage 2 Factor B Variability Interaction Variability Numerator for Factor A F-ratio Denominator for F-ratio
15 Partitioning of Variability for Two-Way ANOVA Total Variability Effect Variability (MS Between) Error Variability (MS Within) Factor A Variability Stage 1 { { Stage 2 Factor B Variability Interaction Variability Numerator for Factor B F-ratio Denominator for F-ratio
16 Partitioning of Variability for Two-Way ANOVA Total Variability Effect Variability (MS Between) Error Variability (MS Within) Factor A Variability Stage 1 { { Stage 2 Factor B Variability Interaction Variability Numerator for Interaction F-ratio Denominator for F-ratio
17 2 Main Types of Interactions
Anthony Greene18 Simple Effects of An Interaction
Anthony Greene19 Simple Effects of An Interaction
Anthony Greene20 Simple Effects of An Interaction
Anthony Greene21 Simple Effects of An Interaction
Anthony Greene22 Simple Effects of An Interaction
Anthony Greene23 Simple Effects of An Interaction
Anthony Greene24 Simple Effects of An Interaction
Anthony Greene25 Simple Effects of An Interaction
Anthony Greene26 Simple Effects of An Interaction
Anthony Greene27
Anthony Greene28
Anthony Greene29
Anthony Greene30 +
Anthony Greene31 How To Make the Computations A1A2 B B A1A2Row Tot B1T SS T B1 B2T SS T B2 Col Tot. T A1 T A2
Anthony Greene32 A1A2Row Total B1T SS T B1 B2T SS T B2 Col Total T A1 T A2
Anthony Greene33 Higher Level ANOVA N-Way ANOVA: Any number of factorial variables may be crossed; for example, if you wanted to assess the effects of sleep deprivation: 1. Hours of sleep per night: 4, 5, 6, 7, 8 2. Age: 20-30, 30-40, 40-50, 50-60, Gender: M, F You would need fifty samples
Anthony Greene34 Higher Level ANOVA Mixed ANOVA: Any number of between subjects and repeated measures variables may be crossed For example, if you wanted to assess the effects of sleep deprivation using sleep per night as the repeated measure: 1. Hours of sleep per night: 4, 5, 6, 7, 8 2. Age: 20-30, 30-40, 40-50, 50-60, Gender: M, F You would need 10 samples
Anthony Greene35 How to Do a Mixed Factorial Design Total Variability Effect Variability (MS Between) MS Within Individual Variability Error Variability Stage 1 { { Stage 2 Factor A Variability Interaction Variability Factor B Variability
Anthony Greene36 Two-Way ANOVA An experimenter wants to assess the simultaneous effects of having breakfast and enough sleep on academic performance. Factor A is a breakfast vs. no breakfast condition. Factor B is three sleep conditions: 4 hours, 6 hours & 8 hours of sleep. Each condition has 5 subjects.
Anthony Greene37 Two-Way ANOVA Sourced.f.SSMSF Between60 Main A5 Main B A x B30 Within2 Total Factor A has 2 levels, Factor B has 3 levels, and n = 5 (i.e., six conditions are required and each has five subjects). Fill in the missing values.
Anthony Greene38 Two-Way ANOVA Sourced.f.SSMSF Between560 Main A15 Main B2 A x B30 Within2 Total First the obvious: The degrees freedom for A and B are the number of levels minus 1. The degrees freedom Between is the number of conditions (6 = 2x3) minus 1.
Anthony Greene39 Two-Way ANOVA Sourced.f.SSMSF Between560 Main A15 Main B2 A x B230 Within2 Total The interaction (AxB) is then computed: d.f. Between = d.f. A + d.f. B + d.f. AxB. OR d.f. AxB = d.f. A d.f. B
Anthony Greene40 Two-Way ANOVA Sourced.f.SSMSF Between560 Main A15 Main B2 A x B230 Within242 Total29 d.f. Within = Σd.f. each cell d.f. Total = N-1 = 29. d.f. Total = d.f. Between + d.f. Within
Anthony Greene41 Two-Way ANOVA Sourced.f.SSMSF Between56012 Main A15 Main B2 A x B230 Within242 Total29 Now you can compute MS Between by dividing SS by d.f.
Anthony Greene42 Two-Way ANOVA Sourced.f.SSMSF Between56012 Main A110 5 Main B2 A x B230 Within242 Total29 You can compute MS A by remembering that F A = MS A MS Within, so 5 = ?/2. SS A is then found by remembering that MS = SS df, so 10 = ?/1
Anthony Greene43 Two-Way ANOVA Sourced.f.SSMSF Between56012 Main A110 5 Main B22010 A x B23015 Within242 Total29 Now SS B is computed by SS A + SS B + SS AxB = SS Between MS B = SS B /df B and MS AxB = SS AxB /df AxB
Anthony Greene44 Two-Way ANOVA Sourced.f.SSMSF Between56012 Main A110 5 Main B22010 A x B23015 Within24482 Total29 MS Within =SS Within /df Within, solve for SS.
Anthony Greene45 Two-Way ANOVA Sourced.f.SSMSF Between Main A110 5 Main B A x B Within24482 Total29 Now Solve for the missing F’s (Between, B, AxB). F=MS/MS Within
Anthony Greene46 Two-Way ANOVA An experimenter is interested in the effects of efficacy on self-esteem. She theorizes that lack of efficacy will result in lower self-esteem. She also wants to find out if there is a different effect for females than for males. She conducts an experiment on a sample of college students, half male and half female. She then puts them through one of three experimental conditions: no efficacy, moderate efficacy, and high efficacy. Then she measures level of self-esteem. Her results are below. Conduct a two-way ANOVA. Report all significant findings with α= 0.05.
Anthony Greene47 Data No Moderate High EfficacyEfficacyEfficacy 147 Males Females
Anthony Greene48 No ModerateHigh Efficacy Efficacy Efficacy 1 T=44 T=197 T=25 Males3 SS=4.68 SS=8.68 SS= T m = 48 Females2 T=1110 T=25 16 T=44 5 SS=4.6 7 SS=4.713 SS=4.7 T f = T ne =15 T me =44 T he =69 n=3 k=6 N=18 G=128 ∑x 2 =1260
Anthony Greene49 SS between SS btw = ∑T 2 /n – G 2 /N SS btw = ( )/3 –28 2 /18 SS btw = =317.8
Anthony Greene50 SS sex, SS efficacy, SS interaction SS sex = ∑T 2 sex/nsex – G 2 /N SS sex = ( )/9 – SS sex = 56.9 SS efficacy = ∑T 2 e/ne– G2/N SS efficacy = ( )/6 – SS efficacy = SS interaction = SS between – SS sex – SS efficacy SS interaction = SS interaction = 17.43
Anthony Greene51 SS within and SS total SS within = ∑SS SS within = =31.9 SS total = ∑x2 – (∑x)2/N SS total = 1260 – SS total = 349.8
Anthony Greene52 Degrees Freedom df btw = cells – 1 = k-1 df sex = rows - 1 df eff = columns - 1 df int = df btw – df sex - df eff df win = Σdf each cell = df tot -df btw df tot = N-1 = nk-1
Anthony Greene53 Degrees Freedom df btw = cells – 1 = k-1 = 5 df sex = rows – 1 = 1 df eff = columns – 1 = 2 df int = df btw – df sex – df eff = df sex df eff = 2 df win = Σdf each cell = df tot -df btw = 12 df tot = N-1= nk-1= 17
54 Source Table Source SS df MS F Fcrit Between Sex 56.9 Efficacy Int Within Total 349.8
55 Source Table Source SS df MS F Fcrit Between Sex Efficacy Int Within Total
56 Source Table Source SS df MS F Fcrit Between Sex Efficacy Int Within Total
57 Source Table Source SS df MS F Fcrit Between F(5,12)=3.11 Sex F(1,12)=4.75 Efficacy F(2,12)=3.88 Int F(2,12)=3.88 Within Total
58 Source Table Source SS df MS F Fcrit Between F(5,12)=3.11 Sex F(1,12)=4.75 Efficacy F(2,12)=3.88 Int F(2,12)=3.88 Within Total main effect for sex 2 main effect for efficacy 3 no significant interaction