module 31: anova for factorial designs

34
31 - 1 Module 31: ANOVA for Factorial Designs This module discusses analyses for factorial designs. Reviewed 19 July 05/MODULE 31: ANOVA for Factorial Designs

Upload: clancy

Post on 05-Jan-2016

46 views

Category:

Documents


3 download

DESCRIPTION

Module 31: ANOVA for Factorial Designs. This module discusses analyses for factorial designs. Reviewed 19 July 05/MODULE 31: ANOVA for Factorial Designs. Factorial Designs. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Module 31: ANOVA for Factorial Designs

31 - 1

Module 31: ANOVA for Factorial Designs

This module discusses analyses for factorial designs.

Reviewed 19 July 05/MODULE 31: ANOVA for Factorial Designs

Page 2: Module 31: ANOVA for Factorial Designs

31 - 2

Factorial Designs

Factorial designs include two or more factors, each having more than one level or treatment. Participants typically are randomized to a combination that includes one treatment or level from each factor.

Page 3: Module 31: ANOVA for Factorial Designs

31 - 3

Treatment Combinations

Treatment combinations and the ability to assess interaction are the essence of factorial designs.

Page 4: Module 31: ANOVA for Factorial Designs

31 - 4

Drug and Exercise Factorial Example

In this two factor example, participants received one of four drugs and also participated in one of four exercise programs. Hence, each factor has four levels and there are 16 treatment combinations altogether. Three participants were assigned to each of the 16 treatment combinations, so that a total of n = 48 participants were involved.

An activity intensity score was recorded for each participant.

Page 5: Module 31: ANOVA for Factorial Designs

31 - 5

Activity response score Type of Exercise

Drug A B C D Total 4 2 9 3

1 3 2 7 4 7 1 3 3

Total 14 5 19 10 48 2 5 5 5

2 4 3 2 4 6 7 3 7

Total 12 15 10 16 53 3 4 7 9

3 6 8 5 5 5 5 4 6

Total 14 17 16 20 67 2 9 4 9

4 2 4 6 5 3 5 5 8

Total 7 18 15 22 62 Overall 47 55 60 68 230

Page 6: Module 31: ANOVA for Factorial Designs

31 - 6

This design permits an assessment of the presence of interaction between the two factors and, if no interaction is present, of the effect of the different levels of exercise and of the different drugs.

The design is more efficient than two separate studies, one for each of the two factors.

Advantage of Factorial Designs

Page 7: Module 31: ANOVA for Factorial Designs

31 - 7

Essence of Interaction

Interaction is present when the differences between the levels for one factor are different for the different levels of the other factor. That is, when differences are different.

Page 8: Module 31: ANOVA for Factorial Designs

31 - 8

Page 9: Module 31: ANOVA for Factorial Designs

31 - 9

No Interaction Between Exercise and Drug

0

2

4

6

8

10

12

A B C D

Exercise

Inte

nsi

ty

Drug 1 Drug 2 Drug 3 Drug 4

Page 10: Module 31: ANOVA for Factorial Designs

31 - 10

Subtle Interaction

0.0

5.0

10.0

15.0

20.0

25.0

30.0

A B C D

Exercise

Inte

nsi

ty

Drug 1 Drug 2 Drug 3 Drug 4

Page 11: Module 31: ANOVA for Factorial Designs

31 - 11

Dramatic Interaction

0.0

1.0

2.0

3.0

4.0

5.0

6.0

7.0

8.0

A B C DExercise

Inte

nsi

ty

Drug 1 Drug 2 Drug 3 Drug 4

Page 12: Module 31: ANOVA for Factorial Designs

31 - 12

Interaction from Example

0.00

1.00

2.00

3.00

4.00

5.00

6.00

7.00

8.00

A B C D

Exercise

Inte

nsi

ty

Drug 1 Drug 2 Drug 3 Drug 4

Page 13: Module 31: ANOVA for Factorial Designs

31 - 13

Hypotheses to Test

First, test:

H0: No Interaction

If this hypothesis is not rejected, then test:

H0: No Exercise effect, and

H0: No Drug effect

Page 14: Module 31: ANOVA for Factorial Designs

31 - 14

If the null hypothesis of no interaction is rejected, then a test for overall drug effect or overall exercise effect has no meaning. Under these circumstances, these tests should not be done; however, it is likely to be insightful to examine the patterns of interaction between the two factors.

When There is Interaction

Page 15: Module 31: ANOVA for Factorial Designs

31 - 15

Hypothesis Testing

1. The hypotheses:

First test:

H0: No Interaction

Then, if there is no interaction, test:

H0: No Exercise effect, and

H0: No Drug effect

Page 16: Module 31: ANOVA for Factorial Designs

31 - 16

2. The Assumptions:

Independent random samples, normal distributions, equal variances

3. The α level:

= 0.05

4. and 5. Test Statistic and Rejection Region

See ANOVA table

Page 17: Module 31: ANOVA for Factorial Designs

31 - 17

6. The Test Result:

ANOVA as shown in the following slides

Page 18: Module 31: ANOVA for Factorial Designs

31 - 18

Activity response score Type of Exercise

Drug A B C D Total 4 2 9 3

1 3 2 7 4 7 1 3 3

Total 14 5 19 10 48 2 5 5 5

2 4 3 2 4 6 7 3 7

Total 12 15 10 16 53 3 4 7 9

3 6 8 5 5 5 5 4 6

Total 14 17 16 20 67 2 9 4 9

4 2 4 6 5 3 5 5 8

Total 7 18 15 22 62 Overall 47 55 60 68 230

Note: 2302/48 = 1,102.08

Page 19: Module 31: ANOVA for Factorial Designs

31 - 19

SS(Total)

SS(Total) = 1,316 – 1,102.08 = 213.92

Note: 2302/48 = 1,102.08

Page 20: Module 31: ANOVA for Factorial Designs

31 - 20

SS(Treatment Combinations)

The next step is to prepare the following table showing the sums for each of the 16 treatment combinations. Also shown are the factor level means.

Page 21: Module 31: ANOVA for Factorial Designs

31 - 21

More for SS(Treatment Combinations)

SS(Treatment Combinations) = 1,210.00 – 1,102.08

= 107.92

We will call this SS(Treatments) afterward to save space.

Note: 2302/48 = 1,102.08

Page 22: Module 31: ANOVA for Factorial Designs

31 - 22

SS(Within Cells)

SS(Within Cells) = SS(Total) - SS(Treatments)

= 213.92 – 107.92

= 106.00

Page 23: Module 31: ANOVA for Factorial Designs

31 - 23

SS(Exercise)

SS(Exercise) = 1,121.50 – 1,102.08 = 19.42

Note: 2302/48 = 1,102.08

Page 24: Module 31: ANOVA for Factorial Designs

31 - 24

SS(Drugs)

SS(Drugs) = 1,120.50 – 1,102.08 = 18.42

Note: 2302/48 = 1,102.08

Page 25: Module 31: ANOVA for Factorial Designs

31 - 25

SS(Drug x Exercise Interaction)

SS(Interaction) = SS(Treatments) – SS(Drugs)

– SS(Exercise)

= 107.92 – 18.42 – 19.42

= 70.08

Page 26: Module 31: ANOVA for Factorial Designs

31 - 26

F(Interaction) = 7.79/3.31 = 2.35 F0.95(9, 32) = 2.19

F(Exercise) = 6.47/3.31 = 1.95 F0.95(3, 32) = 2.90

F(Drugs) = 6.14/3.31 = 1.85 F0.95(3, 32) = 2.90

Page 27: Module 31: ANOVA for Factorial Designs

31 - 27

7. The Conclusion:

Reject H0: No Interaction since the F statistic calculated from the ANOVA table, F = 2.35 exceeds F0.95(9, 32) = 2.18

Do not test the other two hypotheses.

Page 28: Module 31: ANOVA for Factorial Designs

31 - 28

Variations and Review

The following slides present three different designs, but use the same data. This is done for the dual purpose of reviewing the different types of ANOVA we have discussed, while also showing their relationship to each other.

The data are an activity intensity score.

Page 29: Module 31: ANOVA for Factorial Designs

31 - 29

Variation 1: One-Way ANOVA

SS(Drugs) = 212/6 +342/6 + 422/6 – 972/18

Page 30: Module 31: ANOVA for Factorial Designs

31 - 30

F(Drugs) = 6.26 F0.95(2, 15) = 3.68

Page 31: Module 31: ANOVA for Factorial Designs

31 - 31

Variation 2: Randomized Blocks, Simple Repeated Measures

SS(Drugs) = 212/6 +342/6 + 422/6 – 972/18

SS(Persons) = 202/3 +192/3 + + 172/3 – 972/18

Page 32: Module 31: ANOVA for Factorial Designs

31 - 32

F(Drugs) = 6.41 F0.95(2, 10) = 4.10

F(Persons) = 1.07 F0.95(5, 10) = 3.33

Page 33: Module 31: ANOVA for Factorial Designs

31 - 33

Variation 3: Factorial Design

Page 34: Module 31: ANOVA for Factorial Designs

31 - 34

F(Interaction) = 1.12 F0.95(4, 9) = 3.63

F(Drugs) = 8.22 F0.95(2, 9) = 4.26

F(Exercise) = 3.10 F0.95(2, 9) = 4.26