620 likes | 980 Views
Advanced ANOVA. 2-Way ANOVA Complex Factorial Designs The Factorial Design Partitioning The Variance For Multiple Effects Independent Main Effects of Factor A and Factor B Interactions. Total Variability. Effect Variability (MS Between). Error Variability (MS Within). The Source Table.
E N D
Advanced ANOVA 2-Way ANOVA Complex Factorial Designs The Factorial Design Partitioning The Variance For Multiple Effects Independent Main Effects of Factor A and Factor B Interactions Anthony Greene
Total Variability Effect Variability(MS Between) ErrorVariability(MS Within) 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 toeffect differences or error (all unexplained differences) Anthony Greene
Partitioning of Variability for Two-Way ANOVA Total Variability { Stage 1 Effect Variability(MS Between) Error Variability (MS Within) { Factor A Variability Factor B Variability Interaction Variability Stage 2 Anthony Greene
Source Table for 1-Way ANOVA Effect Variability Error Variability
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
2-Way ANOVA For Example: Consider two treatments for mood disorders • This design allows us to consider multiple variables • Importantly, it allows us to understand Interactions among variables
2-Way ANOVA Hypothetical Data: • You can see that the effects of the drug depend upon the disorder • This is referred to as an Interaction
Partitioning of Variability for Two-Way ANOVA Total Variability { Stage 1 Effect Variability(MS Between) Error Variability (MS Within) { Factor A Variability Factor B Variability Interaction Variability Stage 2 Anthony Greene
Partitioning of Variability for Two-Way ANOVA Total Variability { Stage 1 Effect Variability(MS Between) Error Variability (MS Within) { Denominator for all F-ratios Factor A Variability Factor B Variability Interaction Variability Stage 2 Numerator for Omnibus F-ratio Anthony Greene
Partitioning of Variability for Two-Way ANOVA Total Variability { Stage 1 Effect Variability(MS Between) Error Variability (MS Within) { Denominator for F-ratio Factor A Variability Factor B Variability Interaction Variability Stage 2 Numerator for Factor A F-ratio Anthony Greene
Partitioning of Variability for Two-Way ANOVA Total Variability { Stage 1 Effect Variability(MS Between) Error Variability (MS Within) { Denominator for F-ratio Factor A Variability Factor B Variability Interaction Variability Stage 2 Numerator for Factor B F-ratio
Partitioning of Variability for Two-Way ANOVA Total Variability { Stage 1 Effect Variability(MS Between) Error Variability (MS Within) { Denominator for F-ratio Factor A Variability Factor B Variability Interaction Variability Stage 2 Numerator for Interaction F-ratio
Simple Effects of An Interaction Anthony Greene
Simple Effects of An Interaction Anthony Greene
Simple Effects of An Interaction Anthony Greene
Simple Effects of An Interaction Anthony Greene
Simple Effects of An Interaction Anthony Greene
Simple Effects of An Interaction Anthony Greene
Simple Effects of An Interaction Anthony Greene
Simple Effects of An Interaction Anthony Greene
Simple Effects of An Interaction Anthony Greene
+ Anthony Greene
How To Make the Computations Anthony Greene
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: • Hours of sleep per night: 4, 5, 6, 7, 8 • Age: 20-30, 30-40, 40-50, 50-60, 60-70 • Gender: M, F You would need fifty samples Anthony Greene
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: • Hours of sleep per night: 4, 5, 6, 7, 8 • Age: 20-30, 30-40, 40-50, 50-60, 60-70 • Gender: M, F You would need 10 samples Anthony Greene
How to Do a Mixed Factorial Design Total Variability { Stage 1 Effect Variability(MS Between) MS Within { Factor AVariability Factor BVariability InteractionVariability Individual Variability ErrorVariability Stage 2 Anthony Greene
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 Greene
Two-Way ANOVA 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 Greene
Two-Way ANOVA 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 Greene
Two-Way ANOVA 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 Greene
Two-Way ANOVA d.f.Within= Σd.f. each cell d.f.Total = N-1 = 29. d.f.Total= d.f.Between+ d.f.Within Anthony Greene
Two-Way ANOVA Now you can compute MSBetween by dividing SS by d.f. Anthony Greene
Two-Way ANOVA You can compute MSA by remembering that FA= MSA MSWithin, so 5 = ?/2. SSA is then found by remembering that MS = SS df,so 10 = ?/1 Anthony Greene
Two-Way ANOVA Now SSB is computed by SSA + SSB + SSAxB = SSBetween MSB = SSB/dfB and MSAxB = SSAxB/dfAxB Anthony Greene
Two-Way ANOVA MSWithin=SSWithin/dfWithin, solve for SS. Anthony Greene
Two-Way ANOVA Now Solve for the missing F’s (Between, B, AxB). F=MS/MSWithin Anthony Greene
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 Greene
Data No Moderate High Efficacy Efficacy Efficacy 1 4 7 Males 3 8 8 0 7 10 Females 2 10 16 5 7 13 4 8 15 Anthony Greene
No Moderate High Efficacy Efficacy Efficacy 1 T=4 4 T=19 7 T=25 Males 3 SS=4.6 8 SS=8.6 8 SS=4.7 0 7 10 Tm= 48 Females 2 T=11 10 T=25 16 T=44 5 SS=4.6 7 SS=4.7 13 SS=4.7 Tf= 80 4 8 15 Tne=15 Tme=44 The=69 n=3 k=6 N=18 G=128 ∑x2=1260 Anthony Greene
SSbetween SSbtw = ∑T2/n – G2/N SSbtw = (42 + 192 + 252 + 112 + 252 + 442)/3 –282/18 SSbtw = 1228-910.2=317.8 Anthony Greene
SSsex, SSefficacy, SSinteraction SSsex = ∑T2sex/nsex – G2/N SSsex = (482 + 802)/9 – 910.2 SSsex = 56.9 SSefficacy= ∑T2e/ne– G2/N SSefficacy = (152 + 442 + 692)/6 – 910.2 SSefficacy = 243.47 SSinteraction = SSbetween – SSsex – SSefficacy SSinteraction= 317.8-56.9-243.47 SSinteraction= 17.43 Anthony Greene