Top Banner
N-way ANOVA
25

N-way ANOVA

Feb 22, 2016

Download

Documents

ivan

N-way ANOVA. Two-factor ANOVA with equal replications. Experimental design: 2  2 (or 2 2 ) factorial with n = 5 replicate Total number of observations: N = 2  2  5 = 20 Equal replications also termed o rthogonality. The hypothesis. - 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: N-way ANOVA

N-way ANOVA

Page 2: N-way ANOVA

2

Two-factor ANOVA with equal replications

Experimental design: 2 2 (or 22) factorial with n = 5 replicate

Total number of observations: N = 2 2 5 = 20Equal replications also termed

orthogonality

Page 3: N-way ANOVA

3

The hypothesis

H0: There is on effect of hormone treatment on the mean plasma concentration

H0: There is on difference in mean plasma concentration between sexes

H0: There is on interaction of sex and hormone treatment on the mean plasma concentration

Why not just use one-way ANOVA with for levels?

Page 4: N-way ANOVA

4

How to do a 2-way ANOVA with equal replicationsCalculating means

Calculate cell means:

Calculate the total mean (grand mean)

Calculating treatment means

88,145,98,154,124,203,165

5

1 111

nX

egnX

X l ln

l ablab

825,211 1 1

N

XX

a

i

b

j

n

l ijl

5,1311 1

Xeg

nb

XX

b

j

n

l ijli

Page 5: N-way ANOVA

5

How to do a 2-way ANOVA with equal replicationsCalculating general Sum of Squares

Calculate total SS:

Calculate the cell SS

Calculating treatment error SS

191DF total

7175,1762SS total2

1 1 1

N

XXa

i

b

j

n

l ijl

31DF cells

3255,1461SS cells2

1 1

ab

XXn a

i

b

j ij

161DF (error) cells-within

3920,301SS (error) cells-within2

1 1 1

nab

XXn a

i

b

j

n

l ijijl

Page 6: N-way ANOVA

6

How to do a 2-way ANOVA with equal replicationsCalculating factor Sum of Squares

Calculating factor A SS:

Calculating factor B SS

Calculating A B interaction SSA B interaction SS = cell SS – factor A SS – factor B SS = 4,9005A B DF = cell DF– factor A DF – factor B DF = 1

11DF Bfactor

3125,70SS Bfactor 2

1

b

XXan b

j j

11DFA factor

1125,1386SSA factor 2

1

a

XXbn a

i i

Page 7: N-way ANOVA

7

How to do a 2-way ANOVA with equal replicationsSummary of calculations

Page 8: N-way ANOVA

8

How to do a 2-way ANOVA with equal replicationsHypothesis test

H0: There is on effect of hormone treatment on the mean plasma concentration

F = hormone MS/within-cell MS = 1386,1125/18,8370 = 73,6

F0,05(1),1,16 = 4,49

H0: There is on difference in mean plasma concentration between sexes

F = sex MS/within-cell MS = 3,73F0,05(1),1,16 = 4,49

H0: There is on interaction of sex and hormone treatment on the mean plasma concentration

F = A B MS/within-cell MS = 0,260F0,05(1),1,16 = 4,49

Page 9: N-way ANOVA

9

Visualizing 2-way ANOVA

Table 12.2 and Figure 12.1

Page 10: N-way ANOVA

10

2-way ANOVA in SPSS

Page 11: N-way ANOVA

11

2-way ANOVA in SPSS

Click Add

Page 12: N-way ANOVA

12

Visualizing 2-way ANOVA without interaction

Page 13: N-way ANOVA

13

Visualizing 2-way ANOVA with interaction

Page 14: N-way ANOVA

14

2-way ANOVA Random or fixed factor

Random factor: Levels are selected at random…Fixed factor: The ’value’ of each levels are of interest and selected on

purpose.

Page 15: N-way ANOVA

15

2-way ANOVA Assumptions

• Independent levels of the each factor• Normal distributed numbers in each cell• Equal variance in each cell

• Bartletts homogenicity test (Section 10.7)• s2 ~ within cell MS; ~ within cell DF

• The ANOVA test is robust to small violations of the assumptions• Data transformation is always an option (see chpter 13)• There are no non-parametric alternative to the 2-way ANOVA

Page 16: N-way ANOVA

16

2-way ANOVA Multiple Comparisons

Multiple comparesons tests ~ post hoc tests can be used as in one-way ANOVA

Should only be performed if there is a main effect of the factor and no interaction

Page 17: N-way ANOVA

17

2-way ANOVA Confidence limits for means

95 % confidence limits for calcium concentrations on in birds without hormone treatment

MS cellwithins DF; cellwithin

CI % 95

2

2

),2(05,01

bnstX

Page 18: N-way ANOVA

18

2-way ANOVA With proportional but unequal replications

Proportional replications:

N jinij

col# row#

Page 19: N-way ANOVA

19

2-way ANOVA With disproportional replications

Statistical packges as SPSS has porcedures for estimating missing values and correcting unballanced designs, eg using harmonic means

Values should not be estimated by simple cell meansSingle values can be estimated, but remember to decrease the DF

baN

XbBaAX

a

i

b

j

n

l ijljiijl

ij

1ˆ 1 1 1

Page 20: N-way ANOVA

20

2-way ANOVA With one replication

Get more data!

Page 21: N-way ANOVA

21

2-way ANOVA Randomized block design

Page 22: N-way ANOVA

22

3-way ANOVA

Page 23: N-way ANOVA

23

3-way ANOVA

H0: The mean respiratory rate is the same for all speciesH0: The mean respiratory rate is the same for all temperaturesH0: The mean respiratory rate is the same for both sexes H0: The mean respiratory rate is the same for all speciesH0: There is no interaction between species and temperature across

both sexesH0: There is no interaction between species and sexes across

temperatureH0: There is no interaction between sexes and temperature across

both spicesH0: There is no interaction between species, temperature, and sexes

Page 24: N-way ANOVA

24

3-way ANOVA Latin Square

Page 25: N-way ANOVA

25

Exercises

12.1, 12.2, 14.1, 14.2