Professional Documents
Culture Documents
That means it will have the same results as the separate one-
way ANOVA on each variable, except that here the interaction
effect is also included in the model
Two-way ANOVA (axb Factorial Design)
When the effect of one factor is not the same at the levels of
another
E.g. Grade score for females will be greater than males’ when
tutor is present than absent
Main effects, simple effects, interaction
cont…
A simple effect is the effect of one independent variable on the
dependent variable at one particular level of another
independent variable.
We can test the differences between effects by two levels of
an independent variable at each level of another independent
variable separately
Source df SS MS F
Factor A a-1 SSa =A - CF SSa/(a-1) MSa/MSe
Factor B b-1 SSb = B - CF SSb/(b-1) MSb/MSe
AxB (a-1)(b-1) SSab= S-A-B+CF SSab/(a-1)(b-1) MSab/MSe
Error ab(n-1) SSe = T - S SSe/ab(n-1)
Total abn-1 SSt = T - FC
Where “a” and “b”, are the number of groups in treatment A and
B respectively and ‘n’ is the repilication
The two-way Linear model
The formal model underlying two-Way ANOVA, with 2 treatments A and B is:
Xijk = μ + Ai + Bj +ABij + Ɛijk
Ai is the effect of the ith level of treatment A (= difference between μ and mean of
all data in this treatment).
Bj is the effect of the jth level of treatment B (= difference between μ and mean of
all data in treatment B).
B1 B2 Ti.
A1 66.39 96.80 163.19
A2 182.67 139.06 321.73
T.j 249.06 235.86 484.92
B alone
Source Df SS MS F
B 1 8.71 8.71 0.08
error 18 1910.62 106.15
total 19 1919.33
Pooled
Source Df SS MS F
A 1 1256.75 1256.75 32.67**
B 1 8.71 8.71 0.24
error 17 653.87 38.86
total 19 1919.33
Interaction terms
We now meet a unique, powerful feature of factorial ANOVA.
It can examine data for interactions between treatments -
synergism or antagonism.
Some treatments intensify each others’ effects:
1 2 3 Treatment A 1 2 3
Incorporating interaction into the
ANOVA model
First, work out a sum of squares caused by ALL treatments at
ALL levels.
Thus for a 2*2 design, there are actually 4 treatments and for
3*3 design there are 9 treatments, etc. Call this SStrt
Now, we can partition this Sum of squares:
SStrt = SSa + SSb + SSi , Where, SSi is for Sum Square
interaction
We know SSa, we know SSb, so we get SSi by subtraction after
calculating the SStrt using the computational formula
Source df SS MS F
All treat 3 1539.07 …………………………..
A 1 1256.75 1256.75 52.93**
B 1 8.71 8.71 0.37
AxB 1 273.95 273.95 11.54**
Error 16 379.92 23.75
Total 19 1919.33 ………………………
Example Two Way ANOVA
(4x3 factorial ANOVA)
Twenty four men each weighting 35 kg overweight, are
assigned to the 12 treatments that arise from 4 diets and
3 levels of jogging with replication of 2. Each man
consumes the same amount of food per day, but the
diets differ in their proportion of proteins, fat, and
carbohydrate. The aim of the experiment is to reduce
weight .
Diet
X 170,175,165,180,160,158 161,173,157,152,181,190
.
Present Y 186,194,201,215,219,209 164,166,159,182,187,174
Z 180,187,199,170,204,194 162,184,183,156,180,173
X 173,194,197,190,176,198 164,190,169,164,176,175
Y 189,194,217,206,199,195 171,173,196,169,199,180,203
Absent
Z 202,228,190,206,224,204 205,199,170,160,179,179