Presentation is loading. Please wait.

Presentation is loading. Please wait.

Intro to Factorial ANOVA

Similar presentations


Presentation on theme: "Intro to Factorial ANOVA"— Presentation transcript:

1 Intro to Factorial ANOVA
Stats Lunch: Day 9 Intro to Factorial ANOVA

2 Review: Factorial Designs
Factorial Design: Any study w/ > 1 Independent Variable - “Factor” = I.V. -Allow us to look at the effects of several variables at once Benefits of the Factorial Design 1. Economical: Can look at several IVs simultaneously 2. Scientific: Allows us to examine: -Effects of Each IV on the DV -Effect of the COMBINATION of the IVs on the DV 3. Practical: Can’t really publish papers w/ only 1 IV

3 Example of a Factorial Design
A researcher is studying depression. Looks at the effects of: 1. Drug Type (Type 1, Type 2) 2. Therapy Type (A, B) Cell Drug Type Therapy Type The cells in the matrix represent the data from subjects who get a particular combination of the Ivs EX: Patients who get Drug #2 and Therapy A

4 So, really we have four groups of subjects
So, really we have four groups of subjects. Our little matrix represents the “cell mean” for each group... Cell Means: Drug Type Therapy Type

5 We call this a 2 X 2 design, because there are two IVs, each with 2 levels (for a total of 4 cells)
If we changed the design: 1. Drug Type (Type 1, Type 2, Type 3) 2. Therapy Type (Type A, Type B) It would be a 3 X 2 design (2 IVs: 1 w/ 3 levels, 1 w/ 2) If we changed the design again: 1. Drug Type (Type 1, Type 2, Type 3) 2. Drug Dose (Dose 1, Dose 2, Dose 3, Dose 4) 3. Therapy Type (Type A, Type B ) It would be a 3 X 4 X 2 design (3 IVs: 1 w/ 3 levels, 1 w/ 4 levels 1 w/ 2)

6 Some alternative names:
Two-way ANOVA (2 IVs) Three-way ANOVA (3 IVs) There is no theoretical limit for the # of variables you use, however… - Statistical Concerns: -More variables, less power, need more subjects - Practical Concerns: - Variables, More difficult to explain what the hell is going on

7 Info We Get From Factorial Designs
Drug Type Therapy Type 1. We get the overall effect of each Independent Variable Mean of Therapy A = 9 Mean of Therapy B = 6 Mean Of Drug 1 = 9 Mean of Drug 2 = 6 So, we would say there is a Main Effect for both Drug Type and Therapy Type...

8 Info We Get From Factorial Designs
In addition to main effects, we also get the effect of combinations of IVS... The effects of Drug 1 are best when combined w/ Therapy B. So, the the effect of the IV (Drug) is different at the different levels (Therapy 1 vs. Therapy 2) of the other IV...

9 Interactions Interaction: When the effects of an IV are different at the different levels of another IV -The combined (joint) effects of a pair of IVs on the DV Important: So, the effects of 1 IV must be interpreted in terms of the levels of the other IV THIS DOES NOT MEAN THAT ONE IV DEPENDS ON (INFLUENCES) THE OTHER IV: THEY ARE STILL INDEPENDENT OF ONE ANOTHER (DRUG TYPE CAN’T INFLUENCE THERAPY TYPE)

10 Describing Interactions with Graphs
Technically, the correct way to display a factorial design is w/ a bar graph... If the bars from the two levels of an IV aren’t parallel across the levels of the other IV, there is an interaction

11 Describing Interactions with Graphs
However, typically people present a line graph -Doesn’t matter which variable that’s on the X axis -Usually pick the variable you’re most interested in -Or the one that makes the most sense

12 Possible Combinations of Effects From a Factorial Design
1. Only 1 Main Effect Significant 2. Both Main Effects, but not the Interaction 3. Both Main Effects AND the Interaction 4. Only the Interaction is Significant 5. Nothing Significant

13 Example of 1 Significant Main Effect

14 Example of 2 Significant Main Effect, No Interaction

15 Example of Sig. Interaction w/ No Main effects
So, in this case there is no significant effect of EITHER IV. The interesting findings occur ONLY when you consider the combination of variable

16 Interpreting Studies w/ Interactions
The Morris-Watson Theory of Burger King Safety (2001, 2002, 2003) Independent Variables: -Type of Sandwich: Chicken or Hamburger -Type of Side: Fries or Onion Rings Dependent Variable: -Stomach Pain EITHER sandwich w/ fries is ok. However, if you get a burger AND onion rings...

17 Burger X Rings Interaction Effects

18 Morris-Watson Theory Data
So, there are main effects for both IVs, but..

19 Interpreting Studies w/ Interactions
If a study has a significant interaction, you must be VERY cautious in interpreting the main effects… -Sometimes, the Main Effects are important above and beyond the interaction -Sometimes not... Example of When Main Effects Still Important You can typically interpret main effects when the interaction is not a ‘cross-over’ (which is just what it sounds like) -The overall pattern of results is the same across levels of different variables...

20 But the Interaction Doesn’t Cross Over
Example But the Interaction Doesn’t Cross Over We can interpret the main effects when the interaction effects the magnitude of the results, rather than the overall pattern

21 Types of Factorial Design
Between Subjects (Completely Randomized Design) : All IVs are Between (Random assignment for all IVs) -Example: Our 2 X 2 drug study Within Subjects: All IVs are w/in subjects -Example: Side effects of our Antidepressants: -Time of Day: (Morning, Afternoon, Night) -Time on Drug: (1 month, 2 months, 3 months) Mixed Design: Some IVs are between subjects, some w/in -Example: -Drug Type: Type A or Type B -Time of Testing: 1 month, 2 months, 3 months

22 Important Considerations for Factorial Designs
1. Very important to have an equal number of subjects in each cell. -Particularly w/ a w/in groups design 2. When you Have A Continuous IV -Not good to do ANOVA (better to do regression) But if you have to: -Dichotimize: Splitting a continuous variable at some point -Median Split: Dichotimize using the median as your break point

23 Setting Up a Completely Randomized Design in SPSS
Go to Analyze GLM, Univariate 3) Add your DV 4) Add your IVs

24 Setting Up a Completely Randomized Design in SPSS
5) You’ll probably want to do some plots… 6) And go to “options” for effect sizes, descriptives, etc. Plots GUI 7) Select variable for X axis 8) Select variable for Y axis 9) Click on “add” and then “continue”

25 Output from a Completely Randomized Design in SPSS
Main Effects Interaction

26 How to Make a Decent Bar Graph in SPSS (with error bars)
You have probably noticed that the figures SPSS automatically spits out are pretty crappy. Hence, you’ll probably want to put a little more effort into it… Things will be easiest if you set text values to your numeric nominal variables. 1) Go to “Variable View” ) Click 3) Enter your numeric value here. 4) Enter the text value here, and click “add”

27 How to Make a Decent Bar Graph in SPSS (with error bars)
1) Go to “Graphs” and then select “Bar” 2) Select “Clustered” 3) And “summaries for groups of cases” 4) Click on “Define”

28 How to Make a Decent Bar Graph in SPSS (with error bars)
5) Enter your DV (can select if you want to display mean, median, etc.) 6) Enter variable to go on X axis 7) Enter other IV here, and then click on “options” 8) Click to “Display Error Bars” 9) It’s common to have error bars represent one standard error…

29 How to Make a Decent Bar Graph in SPSS (with error bars)
Hit “Continue” and then “Ok”… You can double click on the graph in the output file to open the chart editor: Change background color… Font…. Move Key, etc. Can have a bit more control if you go through the “Interactive” modules under graphs.

30 How to Make a (Sorta) Decent Line Graph in SPSS (with error bars)
Same as before, but select Graph…Line Choose “Multiple” Summaries for Groups of Variables 4) Define all your variables, go to options to get your error bars… 5) Same steps as before…

31 How to Make a (Sorta) Decent Line Graph in SPSS (with error bars)
As you can see, SPSS’s line graphs are pretty crappy no matter what. Better of using Excel for line graphs.


Download ppt "Intro to Factorial ANOVA"

Similar presentations


Ads by Google