Professional Documents
Culture Documents
Learning Objectives
At the end of this session, you will be able to
understand and interpret the components
of a linear model with two categorical
factors
fit a model involving two factors, interpret
the output and present the results
understand the difference between raw
means and adjusted means
appreciate that a residual analysis is the
same with more complex models
To put your footer here go to View > Header and Footer
yij = 0 + vi + gj + ij
Here 0 represents a constant, and the gj (i=1,2,3)
represent the variety effect as before.
We also have the term vi (i=1,2,3,4) to represent the
village effect.
To put your footer here go to View > Header and Footer
Anova results
Source
d.f.
S.S.
M.S.
Prob.
Village
13.91
4.64
14.0
0.000
Variety
25.68
12.84
38.7
0.000
Residual
30
9.95
0.3318
Total
35
49.55
Sample sizes
--------+-----------------------+------|
Variety
|
Village | New
Old
Trad | Total
--------+-----------------------+------KESEN |
0
3
4 |
7
NANDA |
2
7
5 |
14
NIKO |
0
2
3 |
5
SABEY |
2
5
3 |
10
--------+-----------------------+------Total |
4
17
15 |
36
--------+-----------------------+-------
d.f.
Adj.S.S.
Adj.M.S.
Prob.
Village
4.32
1.44
4.34
0.012
Variety
25.68
12.84
38.7
0.000
Residual
33
9.95
0.3318
Total
35
49.55
Model estimates
Parameter
Coeff. Std.error
t prob
0 :constant
5.284
0.386
13.7
0.000
v2 (Nanda)
0.718
0.272
2.63
0.013
-0.179
0.337
-0.53
0.599
0.633
0.294
2.16
0.039
g2 (old)
-1.201
0.327
-3.67
0.001
g3 (trad)
-2.614
0.340
-7.68
0.000
v3 (Niko)
v4 (Sabey)
Relating estimates to
means
Again:
Old - New
-1.201 =
Estimate of g2
Trad - New =
-2.614 =
Estimate of g3
Std.error
Size(n)
Means
(s.d./n)
New improved
5.96
0.128
Old improved
17
4.54
0.173
Traditional
15
3.00
0.168
Adjusted means
Std.error (s/n)
New improved
5.58
0.308
Old improved
4.38
0.148
Traditional
2.96
0.150
10
v
1
2
3
4
0
g 3
4
= 5.284+0.25[0+0.7180.179+0.633]2.614
= 2.963
Thus the variety adjusted mean is an average
over the 4 villages.
To put your footer here go to View > Header and Footer
11
Checking model
assumptions
Anova model with two categorical factors is:
yij = 0 + gi + vj + ij
Model assumptions are associated with the ij.
These are checked in exactly the same way as
before.
A residual analysis is done, looking at plots of
residuals in various ways.
We give below a residual analysis for the model
fitted above.
To put your footer here go to View > Header and Footer
12
.1
.2
Density
.3
.4
.5
-2
-1
0
Standardized residuals
13
-2
-1
Standardized residuals
0
1
Do you
think the
points
follow a
straight
line?
-2
-1
0
Inverse Normal
14
-2
-1
Standardized residuals
0
1
What can
you say here
about the
variance
homogeneity
assumption?
4
Fitted values
15
16
17