Escolar Documentos
Profissional Documentos
Cultura Documentos
ANOVA (GLM 3)
Prof. Andy Field
Slide 1
Aims
Rationale of Factorial
ANOVA
Partitioning Variance
Interaction Effects
Interaction Graphs
Interpretation
Slide 2
What is Two-Way
Independent ANOVA?
Two Independent Variables
Two-way = 2 Independent
variables
Three-way = 3 Independent
variables
Benefit of Factorial
Designs
We can look at how variables Interact.
Interactions
Show how the effects of one IV might
depend on the effects of another
Are often more interesting than main
effects.
Examples
Interaction between hangover and lecture
topic on sleeping during lectures.
A hangover might have more effect on
sleepiness during a stats lecture than during a
clinical one.
Slide 4
An Example
Field (2009): Testing the effects of
Alcohol and Gender on the beergoggles effect:
IV 1 (Alcohol): None, 2 pints, 4 pints
IV 2 (Gender): Male, Female
Slide 6
SST (8967)
Variance between all
scores
SSM
SSR
Variance explained by
the experimental
manipulations
SSA
Effect of
Alcohol
SSB
Effect of
Gender
Error
Variance
SSA B
Effect of
Interacti
on
50
70
45
55
30
50
55
65
60
65
30
70
80
60
85
70
30
45
65
70
65
55
55
55
70
65
70
55
35
30
75
60
70
60
20
70
75
60
80
50
45
55
65
50
60
50
40
SSM
n x
i
x grand
Slide 9
A2: Male
65
70
55
50
45
30
70
65
65
55
60
30
60
60
70
80
85
30
60
70
55
65
65
55
60
65
55
70
70
35
55
60
60
75
70
20
60
60
50
75
80
45
24 (1.88)
2
2
2 (56.46
SS55Gender
24
(60.21
58
.
33
)
24
58
.
33
)
50
50
65
60
40
SS
n x x
grand
2
Mean Male = 56.46
24 (1.87)
84 .8256 83 .9256
168 .75
Slide 10
B2: 2 Pints
B3: 4 Pints
65
50
70
45
55
30
70
55
65
60
65
30
60
80
60
85
70
30
60
65
70
65
55
55
60
70
65
70
55
35
55
75
60
70
60
20
60
75
60
80
50
45
n x
2 (46.5625
65
60 58 .33)2 16
50
40.33)2
SS alc55
58 .33)2 1650(64.6875
58
ohol 16(63.75
SSB
x grand
2
16
5.42) 16 (6.3575)
16Pints
(11=.7675 )
Mean None
= (63.75
Mean 2
64.6875
470 .0224 646 .6849 2215
.5849
3332 .292
Slide 11
Mean 4 Pints =
46.5625
SS A B SS M SS A SS B
SS A B SS M SS A SS B
5479 .167 168 .75 3332 .292
1978 .125
Slide 12
2
2
2
SSR sgroup1
(n1 1) sgroup2
(n2 1) sgroup3
(n3 1)
2
2
2
sgroup4
(n4 1) sgroup5
(n5 1) sgroup6
(n6 1)
Slide 13
Or:
gogglesModel<-aov(attractiveness ~
alcohol*gender, data = gogglesData)
Interpreting factorial
ANOVA
Interpretation: Interaction
Slide 20
What is an Interaction?
6.25
6.25
21.875
5.625
Slide 21
Slide 22
Yes
No
Slide 23
No
Yes
Interpreting Contrasts
To see the output for the contrasts
that we specified, execute:
summary.lm(gogglesModel)
Interpreting Contrasts
Interpreting Contrasts