Top Banner
Two-Way Analysis of Variance 2-Factor ANOVA
25

Two-Way Analysis of Variance

Feb 23, 2016

Download

Documents

Dorti Widita

Two-Way Analysis of Variance. 2-Factor ANOVA. Previously…. We learned how to conduct a one-way ANOVA, one-way meaning that we had only one independent variable. If we have two independent variables, we could conduct two separate one-way ANOVAs, but there is a better way. 2-Factor ANOVA. - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Two-Way Analysis of Variance

Two-Way Analysis of Variance

2-Factor ANOVA

Page 2: Two-Way Analysis of Variance

Previously…

• We learned how to conduct a one-way ANOVA, one-way meaning that we had only one independent variable.

• If we have two independent variables, we could conduct two separate one-way ANOVAs, but there is a better way.

Page 3: Two-Way Analysis of Variance

2-Factor ANOVA

• The two-way ANOVA not only gives you information about the effect of each variable but also the effect of both variables combined (their interaction).

• Just as in a one-way ANOVA, you can have any number of levels (2+) for each of the independent variables.

Page 4: Two-Way Analysis of Variance

Factors

• As mentioned before, a factor is an IV.

• If you have two levels of one IV and three levels of the other IV, you have a 2 × 3 factorial design.

• For example: A = Drug, B = Placebo, and 1-3 are types of talk therapy.

A1 A2 A3

B1 B2 B3

Page 5: Two-Way Analysis of Variance

Factors

• With a 2 × 3 factorial design you need 6 groups (2 × 3 = 6).

• Even though you need a lot of groups, a two-way ANOVA is more economical than two one-way ANOVAs because you can test the effects of both IVs with the same number of subjects.

A1 A2 A3

B1 B2 B3

Page 6: Two-Way Analysis of Variance

Experimental Design

• For a 2 × 2 factorial design:

Pop.

TxCx

Tx +D

Tx +P

Cx +P

Cx+D

IV 1

IV 2

Page 7: Two-Way Analysis of Variance

Interaction

• As mentioned before, we get additional information about the effects of both IVs on your DV (see pg. 283).

Page 8: Two-Way Analysis of Variance

Main Effect vs. Interaction

• If you averaged the points obtained from all levels of each IV and compared each mean, that would be your main effect.

• If you notice the plotted lines converging, diverging, or crossing, that is interaction. If the lines are parallel, you have no interaction.

Page 9: Two-Way Analysis of Variance

Advantages of the 2-Way ANOVA

1. Additional information: Interaction between the two variables

2. Economical: Information about an additional variable plus interaction with the same number of subjects

3. Increased power4. Greater generalizability: your results may

apply to more populations

Page 10: Two-Way Analysis of Variance

Outcome

• Instead of a single F, you will get three Fs, one for each IV and one for interaction.

• The computation is more involved, and we won’t do it by hand.

• But you should be able to interpret the results of a 2-way ANOVA if given an ANOVA summary table.

Page 11: Two-Way Analysis of Variance

Interpreting the ResultsSource df SS MS F

Between K-1 SSb SSb/(K-1)

Factor A A-1 SSA SSA/(A-1) MSA/MSw

Factor B B-1 SSB SSB/(B-1) MSB/MSw

A×B Interaction dfA × dfB SSAxB SSAxB/(dfA × dfB) MSAxB/MSw

Within N-K SSw SSw/(N-K)

Total N-1 SStot

Page 12: Two-Way Analysis of Variance

Finding Fcrit

• Just as before, you will need to use df values. They may be different for each of the Fcrit values. Just remember the numerator/denominator rule and you’ll be set.

• Looking at the F table, for the column use the df that was used in the numerator of F, and for the row, use the df that was used in the denominator (the denominator df should be the same for all F values).

Page 13: Two-Way Analysis of Variance

Graphs

• We can get a pretty good idea of what’s going on by looking at graphs.

• In this case, we can see that Factor B probably has a significant main effect, but Factor A has no effect.

A1 A2

B1B2

Page 14: Two-Way Analysis of Variance

Graphs

• How about this one?

Factor A Factor B Interact. None

A1 A2

B1B2

Page 15: Two-Way Analysis of Variance

Graphs

• How about this one?

Factor A Factor B Interact. None

A1 A2

B1B2

Page 16: Two-Way Analysis of Variance

Graphs

• How about this one?

Factor A Factor B Interact. None

A1 A2

B1B2

Page 17: Two-Way Analysis of Variance

Graphs

• How about this one?

Factor A Factor B Interact. None

1-30 yrs. 31-60 yrs. 61-90

ControlShock TxLobotomy

Page 18: Two-Way Analysis of Variance

Graphs

• How about this one?

Factor A Factor B Interact. None

1-30 yrs. 31-60 yrs. 61-90

ControlShock TxLobotomy

Page 19: Two-Way Analysis of Variance

Graphs

• How about this one?

Factor A Factor B Interact. None

1-30 yrs. 31-60 yrs. 61-90

ControlShock TxLobotomy

Page 20: Two-Way Analysis of Variance

Null Hypothesis

• Because we have three Fs, we have three null hypotheses:

1. H0: μA1 = μA2 = μAa

2. H0: μB1 = μB2 = μBb

3. The simple effect of Factor A are the same at all levels of B.

Page 21: Two-Way Analysis of Variance

Null Hypothesis Review

• One-sample t Test– H0: μ1 = μ0

• Two-sample t Test– H0: μ1 = μ2

• One-way ANOVA– H0: μ1 = μ2 = μK

Page 22: Two-Way Analysis of Variance

Interpretation Review

• Any time you are doing a test of “significance” and you find a significant result, the correct interpretation is as follows:

• The probability of getting a difference this large or larger if the the null hypothesis is true is [p-value] (e.g., less than .01).

Page 23: Two-Way Analysis of Variance

For the Quiz:

• Make sure you can decide which test to use based on the information provided.

• For example, if you want to compare the effects of 4 different types of drugs on a memorization task, which test would you use?

Page 24: Two-Way Analysis of Variance

The Tests You Should Now Know

• One-sample t Test (or CI for μ)

• Two-sample t Test – Independent Samples

• Two-sample t Test – Dependent Samples

• One-way Analysis of Variance

• Two-way Analysis of Variance

Page 25: Two-Way Analysis of Variance

Homework

• Study for Chapter 12 Quiz

• Read Chapter 13

• Do Chapter 12 HW