Linear Contrasts and Multiple Comparisons (Chapter 9) : Terms
Linear Contrasts and Multiple Comparisons (Chapter 9) : Terms
A study was performed to examine the effect of a new sleep inducing drug on a
population of insomniacs. Three (3) treatments were used:
Standard Drug
New Drug
Placebo (as a control) What is the role of the placebo in this study?
What is a control in an experimental study?
SUMMARY
Groups Count Sum Average Variance
Placebo 6 29.9 4.983333 0.493667
Standard Drug 6 47.7 7.95 0.455
New Drug 6 46.6 7.766667 2.358667
ANOVA
Source of Variation SS df MS F P-value F crit
Between Groups 33.163333 2 16.58167 15.04082 0.00026 3.682317
Within Groups 16.536667 15 1.102444
Total 49.7 17
Any linear comparison among t population means, m1, m2, ...., mt can
be written as:
l a1m1 a2m2 at mt
t
Where the ai are constants satisfying the constraint: ai 0
i 1
Example: To compare m1 to m2 we use the equation:
a1 1
l m1 m2 with
coefficients a2 1 Note
constraint
a3 a4 at 0 is met!
m2 m3
l m1 (1)m1 ( 21 )m 2 ( 21 )m 3
2
STA 6166 - MCP 6
Linear Contrast
A linear comparison
estimated by using group
l m 1 m 2 y1 y 2
means is called a linear
l m m 2 m 3 (1)y ( 1 )y ( 1 )y
contrast.
1 1 2 2 2 3
2
Variance of a linear contrast:
2 a1
2 2 2
t 2
sw2 MSE
a2 at 2 ai
V (l) sw n n sw
1 n2 t
i 1
ni
( MSW )
2
t MSl
ai yi F ~ F1,nT t
Test of
i 1
significance MSl
t ai2
MSE
H : l = 0 vs. H : l 0
o a i 1 ni
STA 6166 - MCP 7
Orthogonal Contrasts
lˆ1 a1 y1 a2 y2 at yt
lˆ b y b y b y
2 1 1 2 2 t t
t
l1 l2 a1b1 a2b2 at bt ai bi 0
i 1
a1 1 b1 0 Orthogonal
1
a2 b2 1
2
a3
1
b3 1 lˆ3 y1 y2
2
lˆ4 y1 y3
Non-orthogonal a1 1 b1 1
a2 1 b2 0
Contrast Standard drug (2) to placebo (1). a3 0 b3 1
Contrast New drug (3) to placebo (1).
STA 6166 - MCP 9
Drug Comparisons
Degrees
Standard Sums of of Mean
Placebo Drug New Drug Source Squares Freedom Square F statistic P-value
5.60 8.40 10.60 Between Groups 33.16 2 16.582 15.04 0.00026
5.70 8.20 6.60 Within Groups 16.54 15 1.102
5.10 8.80 8.00 Total 49.70 17
3.80 7.10 8.00
4.60 7.20 6.80
5.10 8.00 6.60
sum 29.900 47.700 46.600
y y 7.95 7.77
mean 4.983 7.950 7.767 lˆ1 y1 2 3 4.98 2.88
variance 0.494 0.455 2.359 2 2
pooled variance 1.102
SSW 16.537 lˆ y y 7.95 7.77 0.18
2 2 3
variance of the means 2.764
Between mean SSQ (SSB) 16.582
F1 30.04 lˆ1
2
2.88
2
MSE 1.102 SSlˆ1 MSlˆ1 33.10
ai2 0.25
MSlˆ2 0.10 i n
F2 0.09 i
MSE 1.102
ˆ ˆ
SSl2 MSl2
lˆ2
2
0.18
2
0.10
bi2 0.33
F1,15,.05 4.54 i n STA 6166 - MCP 10
i
Importance of Mutual Orthogonality
Q1: Is the average life on hardwood the same as average life on softwood?
m1 m 2 m3 m 4 m1 m 2 m3 m 4
1
H :
0 OR 2 2 0
2 2
Comparison: l1 ( 12 )m1 ( 12 )m 2 ( 12 )m3 ( 12 )m 4
l̂1 ( 12 )y1 ( 12 )y 2 ( 12 )y3 ( 12 )y 4 Estimated Contrast
MSl1 i1t 2
2 1 2 2 2 3 2 4
ai 1 2 1 2 1 2 1 2
2
2
2
2
i 1 ni n1 n2 n3 n4
2
t
ai yi 2 2 2 2 49
1
13 1
14 1
20 1
21
2
MSl1 147
F= = = 29.4
MSE 5
F1,8,0.05 = 5.32
Q2: Is the average life in dry climate the same as average life in wet climate?
m1 m 3 m2 m4 m1 m 3 m 2 m 4
H 02 : OR 0
2 2 2 2
Comparison: l2 ( 12 )m1 ( 12 )m2 ( 12 )m3 ( 12 )m 4
l̂2 ( 12 )y1 ( 12 )y 2 ( 12 )y3 ( 12 )y 4 Estimated Contrast
MSl2 i1t 2
2 1 2 2 2 3 2 4
ai 1 2 1 2 1 2 1 2
2
2
2
2
i 1 n i n1 n2 n3 n4
2
t
ai yi 2 2 2
1
13 1
14 1
20 2 12
1
21
2
MSl2 i1 3
1 12 2 12
ai
t 2 2 2 2 2
1
1
2
3
i1 i
n 3 3 3 3
MSl2 3
F= = = 0.6
MSE 5
F1,8,0.05 = 5.32
Q3: Does the difference in paint life between wet and dry climates depend
upon whether the wood is hard or soft?
H30 : m1 m 2 m3 m 4 OR (m1 m 2 ) (m3 m 4 ) 0
MSl3 i1t 2
1 2 3 4
MSl3 i1 0
ai
t 2
1 2
1
2
1
2
1
2
4
3
i1 i
n 3 3 3 3
MSl3 0
F= = = 0
MSE 5
F1,8,0.05 = 5.32
1 out of every 20
will yield
p-value<0.05,
even though
there is no
effect!
e 1 (1 a ) c 6
7
8
0.05
0.05
0.05
0.265
0.302
0.337
9 0.05 0.370
10 0.05 0.401
11 0.05 0.431
If the comparisons are not orthogonal, then the 12 0.05 0.460
13 0.05 0.487
experimentwise error rate is smaller. 14 0.05 0.512
15 0.05 0.537
16 0.05 0.560
Thus in most situations we actually have: 17 0.05 0.582
18 0.05 0.603
e 1 (1 a ) c 19 0.05 0.623
20 0.05 0.642
e 1 (1 a )
solution to this that guarantees: c
We set:
a e/c
E.g. if c=8, we get a=0.05/8=0.0063.
Still conservative! STA 6166 - MCP 24
Multiple Comparison Procedures (MCPs):
Overview
Terms:
• If the MCP requires a significant overall F test, then the procedure is
called a protected method.
• Not all procedures produce the same results. (An optimal procedure
could be devised if the degree of dependence, and other factors,
among the comparisons were known…)
y i y j Wr
Wr qa (r , df error ) MSE
n
varying
r=5 r=6 yardstick
r=2 r=3 r=4 STA 6166 - MCP 29
Duncan’s New Multiple Range Test (Passe)
Compares each treatment mean (i) to the mean for the control
group (c).
yi yc D D da (k , v) MSE n2
dα(k,v) is obtained from Table A-11 (in the book) and is based on:
• α = the desired experimentwise error rate
• k = t-1, number of noncontrol treatments
• v = error degrees of freedom.
i 1
To test H0: l = 0 versus Ha: l 0
For a specified value of a, reject H0 if: lˆ S
where:
S Vˆ (lˆ) (t 1) Ft 1,dferror ,a
STA 6166 - MCP 32
Adjustment for unequal sample sizes:
The Harmonic Mean
• Tukey’s W: ( yi y j ) W
Ri R j KWij
qa (t , ) nT (1 nT ) 1 1
KWij
12 n n
2 i j
STA 6166 - MCP 36
Comparisonwise error
rates for different MCP