Statistics for Everyone Workshop Summer 2011 Part 3 Two-Way Analysis of Variance: Examining the Individual and Joint Effects of 2 Independent Variables.

Slides:



Advertisements
Similar presentations
Statistics for the Social Sciences
Advertisements

Factorial Designs Passer Chapter 9
SPSS Session 5: Association between Nominal Variables Using Chi-Square Statistic.
Two-Way ANOVA. Two-way Analysis of Variance  Two-way ANOVA is applied to a situation in which you have two independent nominal-level variables and one.
Analysis of variance (ANOVA)-the General Linear Model (GLM)
Chapter Fourteen The Two-Way Analysis of Variance.
Introduction to Factorial ANOVA Designs
Intro to Factorial ANOVA
Two Factor ANOVA.
The Two Factor ANOVA © 2010 Pearson Prentice Hall. All rights reserved.
Factorial ANOVA 2-Way ANOVA, 3-Way ANOVA, etc.. Factorial ANOVA One-Way ANOVA = ANOVA with one IV with 1+ levels and one DV One-Way ANOVA = ANOVA with.
Lecture 16 Psyc 300A. What a Factorial Design Tells You Main effect: The effect of an IV on the DV, ignoring all other factors in the study. (Compare.
Two Groups Too Many? Try Analysis of Variance (ANOVA)
Lecture 15 Psyc 300A. Example: Movie Preferences MenWomenMean Romantic364.5 Action745.5 Mean55.
Intro to Statistics for the Behavioral Sciences PSYC 1900
Intro to Statistics for the Behavioral Sciences PSYC 1900 Lecture 14: Factorial ANOVA.
Lecture 13: Factorial ANOVA 1 Laura McAvinue School of Psychology Trinity College Dublin.
2-Way ANOVA, 3-Way ANOVA, etc.
2x2 BG Factorial Designs Definition and advantage of factorial research designs 5 terms necessary to understand factorial designs 5 patterns of factorial.
Introduction to Analysis of Variance (ANOVA)
Running Fisher’s LSD Multiple Comparison Test in Excel
1 Two Factor ANOVA Greg C Elvers. 2 Factorial Designs Often researchers want to study the effects of two or more independent variables at the same time.
Understanding the Two-Way Analysis of Variance
Statistics for Everyone Workshop Fall 2010 Part 3 Comparing 2 Conditions With a T Test Workshop by Linda Henkel and Laura McSweeney of Fairfield University.
Statistics for Everyone Workshop Fall 2010 Part 5 Comparing the Proportion of Scores in Different Categories With a Chi Square Test Workshop presented.
Psy B07 Chapter 1Slide 1 ANALYSIS OF VARIANCE. Psy B07 Chapter 1Slide 2 t-test refresher  In chapter 7 we talked about analyses that could be conducted.
ANOVA Chapter 12.
Chapter 14Prepared by Samantha Gaies, M.A.1 Chapter 14: Two-Way ANOVA Let’s begin by reviewing one-way ANOVA. Try this example… Does motivation level affect.
Inferential Statistics: SPSS
ANOVA Greg C Elvers.
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Chapter Comparing Three or More Means 13.
The following Analysis of Variance table lists the results from a two-factor experiment. Factor A was whether shelf price was raised or not, and factor.
1 of 46 MGMT 6970 PSYCHOMETRICS © 2014, Michael Kalsher Michael J. Kalsher Department of Cognitive Science Inferential Statistics IV: Factorial ANOVA.
Statistics for Everyone Workshop Summer 2011 Part 2 One-Way Analysis of Variance: Comparing 2 or More Levels of a Variable Workshop by Linda Henkel and.
Spring /6.831 User Interface Design and Implementation1 Lecture 15: Experiment Analysis.
Lecturer’s desk INTEGRATED LEARNING CENTER ILC 120 Screen Row A Row B Row C Row D Row E Row F Row G Row.
Chapter 12: Introduction to Analysis of Variance
t(ea) for Two: Test between the Means of Different Groups When you want to know if there is a ‘difference’ between the two groups in the mean Use “t-test”.
© Copyright McGraw-Hill CHAPTER 12 Analysis of Variance (ANOVA)
Chapter 7 Experimental Design: Independent Groups Design.
Two-way ANOVA Introduction to Factorial Designs and their Analysis.
Running Scheffe’s Multiple Comparison Test in Excel
 Slide 1 Two-Way Independent ANOVA (GLM 3) Chapter 13.
Chapter 10: Analyzing Experimental Data Inferential statistics are used to determine whether the independent variable had an effect on the dependent variance.
Chapter 12 A Primer for Inferential Statistics What Does Statistically Significant Mean? It’s the probability that an observed difference or association.
Chapter 14 Repeated Measures and Two Factor Analysis of Variance
Supplementary PPT File for More detail explanation on SPSS Anova Results PY Cheng Nov., 2015.
Statistics for Everyone Workshop Fall 2010 Part 4B Two-Way Analysis of Variance: Examining the Individual and Joint Effects of 2 Independent Variables.
Lesson Two-Way ANOVA. Objectives Analyze a two-way ANOVA design Draw interaction plots Perform the Tukey test.
Mixed ANOVA Models combining between and within. Mixed ANOVA models We have examined One-way and Factorial designs that use: We have examined One-way.
IS 4800 Empirical Research Methods for Information Science Class Notes March 16, 2012 Instructor: Prof. Carole Hafner, 446 WVH Tel:
Chapter 13 Repeated-Measures and Two-Factor Analysis of Variance
Two-Way (Independent) ANOVA. PSYC 6130A, PROF. J. ELDER 2 Two-Way ANOVA “Two-Way” means groups are defined by 2 independent variables. These IVs are typically.
Section 12.2: Tests for Homogeneity and Independence in a Two-Way Table.
The Analysis of Variance ANOVA
Smith/Davis (c) 2005 Prentice Hall Chapter Fifteen Inferential Tests of Significance III: Analyzing and Interpreting Experiments with Multiple Independent.
Copyright c 2001 The McGraw-Hill Companies, Inc.1 Chapter 11 Testing for Differences Differences betweens groups or categories of the independent variable.
Handout Eight: Two-Way Between- Subjects Design with Interaction- Assumptions, & Analyses EPSE 592 Experimental Designs and Analysis in Educational Research.
Research Methods and Data Analysis in Psychology Spring 2015 Kyle Stephenson.
Outline of Today’s Discussion 1.Introduction to Factorial Designs 2.Analysis of Factorial Designs 3.Hypotheses For Factorial Designs 4.Eta Squared and.
© 2006 by The McGraw-Hill Companies, Inc. All rights reserved. 1 Chapter 11 Testing for Differences Differences betweens groups or categories of the independent.
Choosing and using your statistic. Steps of hypothesis testing 1. Establish the null hypothesis, H 0. 2.Establish the alternate hypothesis: H 1. 3.Decide.
Chapter 14 Repeated Measures and Two Factor Analysis of Variance PowerPoint Lecture Slides Essentials of Statistics for the Behavioral Sciences Seventh.
Comparing Three or More Means
Lesson ANOVA - D Two-Way ANOVA.
Interactions & Simple Effects finding the differences
Hypothesis Testing and Comparing Two Proportions
Exercise 1 Use Transform  Compute variable to calculate weight lost by each person Calculate the overall mean weight lost Calculate the means and standard.
STATISTICS INFORMED DECISIONS USING DATA
Presentation transcript:

Statistics for Everyone Workshop Summer 2011 Part 3 Two-Way Analysis of Variance: Examining the Individual and Joint Effects of 2 Independent Variables Workshop by Linda Henkel and Laura McSweeney of Fairfield University Funded by the Core Integration Initiative and the Center for Academic Excellence at Fairfield University and NSF CCLI Grant

Statistics as a Tool in Scientific Research: Two-Way ANOVA One-way ANOVA = one factor = one independent variable with 2 or more levels/conditions Two-way ANOVA = two factors = two independent variables; each IV has 2 or more levels/conditions

Two-Way ANOVA (Factorial Design) If you have 2 IVs in the same study, you can examine them each independently and in conjunction with each other Does IV1 influence DV? (main effect) Does IV2 influence DV? (main effect) Do the effects of IV1 and IV2 combined differentially affect DV? (interaction)

Two-Way ANOVA Example You are interested in whether ER patients get more agitated when the machine monitoring their vital signs emits lots of noises. You measure their pulse as a way to index their agitation, and have some of the patients hooked up to machines that are very noisy or machines that have the volume off. DV = Pulse (beats per minute) IV1: Monitor Volume (volume on, volume off) You are also interested in whether men or women tend to have higher pulse rates when in the ER, and in particular, whether each gender responds differently to the presence of noisy monitoring devices. IV2: Gender (male, female)

Two-Way ANOVA A: Monitor Volume (volume on, volume off) B: Gender (male, female) A x B: Interaction of monitor volume and gender MaleFemale Volume on Volume off

Three key pieces of information Main effect for IV1: Monitor Volume (volume on, volume off) Overall, did pulse rate differ on average as a function of monitor volume? Did the monitor volume matter? Main effect for IV2: Gender (male, female) Overall, did pulse rates differ on average as a function of gender? Did gender matter? Interaction IV1xIV2: Interaction of monitor volume and gender Did the influence of the monitor’s volume on pulse rates depend on whether the person was male or female? MaleFemale Volume on Volume off

Some Terminology 2x2 2x3 2x4 2x2x3 factorial design Number of numbers = how many factors (IVs) How many factors = how many “ways” one factor = one-way, two factors = two-way, etc. Number itself = how many levels of that IV Total number of conditions = product So a 2x2 design has 4 conditions; a 2x3 has 6 conditions

Understanding Main Effects IV2 MaleFemale IV1Volume on Volume off Cell means = means for each condition So the 30 males whose heart rate was measured with the volume on average had a pulse of 100 The 30 women whose heart rate was measured with the volume on had a pulse of 80 on average

Understanding Main Effects IV2 MaleFemale IV1Volume on (90) (100+80)/2 Volume off (65) (70+60)/2 (85) (70) (100+70)/2 (80+60)/2 Marginal means = means for main effects (average of cell means in respective column or row)

Understanding Main Effects IV2 MaleFemale IV1Volume on (90) Volume off (65) (85) (70) Main effect for IV1: Does monitor volume matter? Does it effect pulse rate? 90 vs. 65 Main effect for IV2: Does gender matter? Does it effect pulse rate? 85 vs. 70

Understanding Main Effects A main effect lets you know overall whether that IV influenced the DV, ignoring the other IV Refer to marginal means when interpreting main effects Look at F value and corresponding p value for each main effect to see whether it is significant. Is it probably a real effect? Using a factorial design is like having two separate studies rolled into one: You get to see the overall effects of each variable

Understanding Main Effects As in a one-way ANOVA, if the main effect is significant and there are only 2 levels of IV, you know where the difference is If 3 or more levels of IV, you know that at least one condition is different from the others but do not know which differences are real. You would need to run additional tests to see which differences between 2 conditions are real (e.g., Tukey’s HSD if equal n; Fisher’s protected t if unequal n) MaleFemale Very noisy Somewhat noisy Volume off

Plot the cell means to see what the data are showing

Understanding Interactions Factorial designs not only yield info about main effects, but they provide a third – and often critical – piece of information Interaction: main effects do not tell full story; need to consider IV1 in relation to IV2 Do the effects of one IV on the DV depend on the level of the 2 nd IV? Is the pattern of one IV across the levels of the other IV different depending on the level of the other IV (not parallel)?

Understanding Interactions Example 1: Crossover interaction MaleFemale Volume on 100 > 50(75) Volume off 50 < 100(75) (75) = (75) The main effects would lead you to conclude that neither variable influenced pulse rates. But that is not true. Look at the patterns shown by the cell means. The pattern seen in the differences in average pulse rates between men and women differ depending on whether the volume is on or off

Nonparallel lines suggest an interaction is present

Understanding Interactions Example 2: Treatment works for one level but not for other MaleFemale Volume on 100> 50(75) Volume off 80= 80(80) (90)> (65) Main effects would lead you to conclude that males always have higher pulse rates on average, but that is only true when the volume is on (not when the volume is off)

Nonparallel lines suggest an interaction is present

Understanding Interactions Teaching tip: Interactions can be seen easily when line graphs are made Nonparallel lines = Interaction Parallel lines = No interaction

Parallel lines suggest there is not an interaction

Example 3: Ordinal Interaction Sometimes an interaction is significant but it does not change the conclusions you draw from the main effects. The patterns are the same, it is HOW MUCH the difference varies Male Female Volume on 60 < 90(75) Volume off 50 < 60(55) (55) < (75) Women always have higher average pulse rates than men but the relative difference is more pronounced when the volume is on than when it is off Volume on: 60 vs. 90 = 30 point difference Volume off: 50 vs. 60 = 10 point difference The volume being on always produced higher average pulse rates than the volume being off, but women are especially affected by this Men: 60 vs. 50 = 10 point difference Women: 90 vs. 60 = 30 point difference

Understanding Interactions Teaching tip: Graphing the data really drive interactions home The lines are not parallel but are moving in the same direction (i.e., slopes have same sign but different values); Women always have higher pulses than men but especially so when the volume is off

Teaching Tips Graphs can be made with either variable on the x axis; a good researcher thinks about whether the data tell the story better with IV1 or IV2 on the x axis

Teaching Tips Remind students that when talking about main effects, always use marginal means When talking about interactions, always use cell means When making graphs, graph the cell means, not the marginal means

Hypothesis Testing Using ANOVA Testing for the Main Effect of IV1 (and similarly for IV2) Null hypothesis H 0 : The IV1 does not influence the DV Any differences in average scores between the different conditions of IV1 are probably just due to chance (measurement error, random sampling error) The (population) means at all levels of the IV1 are equal Research or alternative hypothesis H A : The IV1 does influence the DV The differences in average scores between the different conditions are probably not due to chance but show a real effect of the IV1 on the DV At least one level of the IV1 has a different (population) mean

Hypothesis Testing Using ANOVA Testing for the Interaction of IV1 and IV2 Null hypothesis H 0 : There is not an interaction between IV1 and IV2 IV1 and IV2 are independent The effect of IV1 does not depend on the level of IV2 (and IV2 does not depend on IV1) Research or alternative hypothesis H A : There is an interaction between IV1 and IV2 IV1 and IV2 are dependent The effect of IV1 does depend on the level of IV2 (and IV2 does depend on IV1) So, under H A the (population) cell means cannot be modeled only from the main effects.

Types of Factorial Designs Between Subjects Factorial Design IV1 = between; IV2 = between MaleFemale Volume on 20 subj20 subj Volume off 20 subj20 subj Total N = = 80

Types of Factorial Designs Within Subjects Factorial Design IV1 = within; IV2 = within Within 1 st hrAfter 3 hrs Volume on 20 subjsame Volume off same same Total N = 20

Types of Factorial Designs Mixed Factorial Design IV1 = within; IV2 = between (between subjects) MenWomen (Within)Volume on 20 subj20 subjects Volume off same mensame women Total N = = 40

Types of Factorial Designs 3-way ANOVA (3 IVs, completely crossed with each other) Monitor volume x Gender x Illness Main effect A: Monitor volume (volume on, volume off) Main effect B: Gender (men, women) Main effect C: Illness (cardiac, flu, broken bone) Interactions: AxB; AxC; BxC; AxBxC Same principles apply

How to Report Two-way ANOVAS Step 1. Describe the design itself (choose one) A two-way ANOVA of [IV1] (level 1, level 2) and [IV2] (level 1, level 2) on [DV] was conducted [DV] was analyzed in a two-way [between, within, mixed] ANOVA, with [IV1] (level 1, level 2) as a [between subjects; within subjects] variable and [IV2] (level 1, level 2) as a [between subjects; within subjects] variable A 2 x 2 factorial [between; within; mixed] ANOVA was conducted on [DV], with [IV1] (level 1, level 2) and [IV2] (level 1, level 2) as the independent variables

How to Report Two-way ANOVAS Examples: A two-way ANOVA of monitor volume (volume on, volume off) and patient’s gender (male, female) on pulse rate as measured by beats per minute was conducted The number of beats per minute was analyzed in a two-way mixed factorial ANOVA, with monitor volume (volume on, volume off) manipulated within- subjects and gender (male, female) as a between- subjects variable A 2 x 2 between-subjects ANOVA was conducted on pulse rate, with monitor volume and patient’s gender as factors

How to Report Two-way ANOVAS Step 2: Report the main effect for IV1: A significant main effect of [IV1] on [DV] was found, F(df bet, df error ) = x.xx, p = xxx. The main effect of [IV1] on [DV] was/was not significant, F(df bet, df error ) = x.xx, p = xxx. Step 2a: If the main effect is significant, the describe it by reporting the marginal means [DV] was higher/lower for [IV1, Level 1] (M = x.xx) than for [IV1, Level 2] (M = x.xx). [DV] did not significantly differ between [IV1, Level 1] (M = x.xx) and [IV1, Level 2] (M = x.xx).

How to Report Two-way ANOVAS Examples A significant main effect of monitor volume on pulse rate was found, F(1, 45) = 12.82, p <.001. Patients’ average pulse rate was higher when the volume was on (M = ) than when the volume was off (M = 75.13) The main effect of monitor volume on pulse rate was not significant, F(1, 45) = 1.31, p =.43. [This means the average pulse rate did not differ significantly whether the volume was on or off. So there is no need for an additional sentence, though some people like to say: Thus pulse rates did not differ on average when the volume was on (M = 88.23) or off (M = 84.66)]

How to Report Two-way ANOVAS Step 3: Report the main effect for IV2 Step 3a: If the main effect is significant, the describe it by reporting the marginal means Use same sentence structures as Step 2 and 2a. Examples A significant main effect of gender on pulse rate was found, F(1, 45) = 15.88, p <.001. Men’s average pulse rate was higher (M = ) than women’s (M = 85.31) The main effect of gender on pulse rate was not significant, F(1, 45) = 1.31, p =.43. [No need for an additional sentence, though some people like to say: Thus pulse rates did not differ between men (M = 86.25) or women (M = 89.32)]

How to Report 2-way ANOVAS Step 4: Report the interaction The [IV1] x [IV2] interaction was/was not significant, F(df IV1xIV2, df error ) = x.xx, p = xxx When the interaction is NOT significant (i.e., when p >.05), that is all you need to do. This means that the two IVs influence the DV independently from each other. Note: A significant interaction trumps the main effects!!! When the interaction is significant, you have to report the cell means and describe their patterns. You also need to be careful what you say about the main effects. The emphasis should be on the interaction when it is significant.

You may examine CELL MEANS and see that the pattern for one IV across the other IV is not the same (i.e., the lines in the graph are not parallel). When the patterns are different, the statement you make about a main effect is NOT true for all levels of the other IV so the emphasis in your write up should be about the interaction, not about the main effects. Example 1: When the volume is on, heart rates are higher for women than for men, but when the volume is off, women have lower heart rates than men. So it is not true that women’s heart rates are the same as men’s heart rates, as you might have concluded if you only looked at the main effect.

Example 2: Maybe when the volume is on, women’s heart rates are higher than men, but when the volume is off, women and men have similar heart rates. So it is not true that women’s heart rates are always higher, as you might have concluded if you only looked at the main effect In those cases, your write up should emphasize the patterns seen in the interaction, and not the main effects

Sample Write Ups for Examples 1 and 2 Although the main effect of [IV] on [DV] was significant, F(df, df) = x.xx, p <.xxx, there was a significant interaction between [IV1] and [IV2], F(df IV1xIV2, df error ) = x.xx, p <.xxx. The describe the patterns, incorporating CELL MEANS & SDs into the sentence: Example 1. When the volume of the monitor was on, women’s average heart rate (M=x.xx, SD=x.xx) was higher than men's average heart rate (M=x.xx, SD=x.xx). However, when the volume was off, women’s heart rates (M=x.xx, SD=x.xx) were lower than men's heart rates (M=x.xx, SD=x.xx), on average Example 2. When the volume of the monitor was on, women’s average heart rate (M=x.xx, SD=x.xx) was higher than men's average heart rate (M=x.xx, SD=x.xx). However, when the volume was off, women’s heart rates (M=x.xx, SD=x.xx) did not differ from men's heart rates (M=x.xx, SD=x.xx), on average.

Example 3: Ordinal Interactions What happens if you examine the cell means and you observe that the pattern for one IV is the same across the other IV -- e.g., when the volume is on, men’s heart rate is higher than women's; likewise, when the volume is off, men’s heart rate is higher than women's

Example 3: Ordinal Interactions If the interaction was significant but is saying the same thing as the main effect does, then it indicates that the pattern is more pronounced at one level of an IV than at the other level. That is, the main effects tell the story (men have higher heart rates than women in the ER, and this is true whether the monitor’s volume is on or off). What is driving the significant interaction can be seen if you drew this as a graph – the lines are moving in the same direction but one slope is steeper than the other. HOW much higher men’s heart rates are relative to woman's differs depending on whether the volume is on or off

Sample Write Up for Example 3 The [fill in name of IV1] and [fill in name of IV2] interaction was significant, F(df, df) = x.xx, p <.xxx, though it was consistent with the patterns seen in the main effects. When the volume was off, average heart rates were higher for men (M=x.xx, SD=x.xx) than for women (M=x.xx, SD=x.xx). Likewise, when the volume was on, heart rates were higher for men (M=x.xx, SD=x.xx) than for women (M=x.xx, SD=x.xx), on average, though the relative difference was more pronounced with the volume off.

Effect Size in Two-Way ANOVAs There are 3 different effect sizes that can be calculated: Effect size for IV1 Effect size for IV2 Effect size for IV1xIV2 interaction All three are measured by eta squared:  2 = SS factor /SS total Note: SPSS will calculate this for you

Running Two-Way ANOVAs on SPSS Map out your design on paper before inputting data into the computer. How you set the data file up depends on the type of design (between, within, mixed) IV2 Level 1 Level 2 IV1 Level 1 1 (1, 1) 2 (1, 2)Format: (Row #, Column #) Level 2 3 (2, 1) 4 (2, 2) There are 4 conditions in this 2x2 design The numbers in parentheses represent the levels of each IV: the first number = the level of IV1 (which row); the second number represents the level of IV2 (which column) Gender Men Women IV1 Volume on 1 (on, men) 2 (on, women) Volume off 3 (off, men) 4 (off, women)

Setting Up SPSS Data file Within Subjects: 4 columns 1 (1, 1)2 (1,2)3 (2,1)4 (2,2) Ex. Pulse rate whenPulse rate whenPulse rate whenPulse rate when vol on/male nursevol on/female nurse vol off/male nursevol off/female nurse Between Subjects: 3 columns (use label codes for IV1 and IV2) IV1 IV2 DV Ex. Vol on/off CodeMale/Female CodePulse Rate Mixed Design: 3 columns IV1(between) IV2 Level1 IV2 Level 2 Ex. Gender CodeWeight loss on plan 1Weight loss on plan 2

Setting Up SPSS Data file Time to practice…