


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



We will use the cuckoo egg data set to exemplify various multiple comparison procedures. Examples will include 1) Two a priori orthogonal contrasts, 2) Tukey’s and Fisher’s methods for pairwise differences, and
Since these tests will rely on results from the ANOVA of the cuckoo egg data, here are the results of that analysis:
The GLM Procedure Dependent Variable: length Sum of Source DF Squares Mean Square F Value Pr > F Model 5 43.2928889 8.6585778 9.58 <. Error 84 75.9200000 0. Corrected Total 89 119.
R-Square Coeff Var Root MSE length Mean 0.363156 4.221740 0.950689 22.
Source DF Type III SS Mean Square F Value Pr > F species 5 43.29288889 8.65857778 9.58 <.
The GLM Procedure Level of ------------length----------- species N Mean Std Dev HSprw 15 23.1700000 1. MPipit 15 22.2766667 1. PWtail 15 22.9033333 1. Robin 15 22.5433333 0. TPipit 15 23.0900000 0. Wren 15 21.1300000 0.
Suppose before data collection has occurred, it was desired to test i) whether the mean cuckoo egg length differed between Tree Pipit nests and Meadow Pipit nests, and also ii) whether mean cuckoo egg length for Pipit nests (Tree and Meadow averaged) differed from Robin nests. Then the two contrasts are:
L 1 = μT P − μM P and L 2 = (μT P + μM P )/ 2 − μR. Here μT P , for example, is the population mean of the Tree Pipit (T P ) group. Since they were specified a priori and they are orthogonal (check this as an exercise), we can use separate t tests for each contrast. We use α = .05 separately for each test. We get
L̂ 1 = yT P − yM P = 23. 09 − 22 .27 = .82, and L̂ 2 = (yT P + yM P )/ 2 − yR = (23.09 + 22.27)/ 2 − 22 .54 =. 14.
and also
V ar̂ (L̂ 1 ) = MSE
∑^ t
i=
a^21 i ni
= (.904)((1)^2 /15 + (−1)^2 /15) =. 121 , and
V ar̂ (L̂ 2 ) = MSE
∑^ t
i=
a^22 i ni
Then for H 0 : L 1 = 0 we have t = L / s.e.̂ ( ̂L) = .82/
.121 = 2.36, and for H 0 : L 2 = 0 we have t = ̂L / s.e.( L̂ ) = .14/
.0904 = .47. The degrees of freedom for MSE is 84 so if we are conservative and use df = 80 we get t 80 ,. 975 = 1. 99. Thus we reject H 0 : L 1 = 0 in favor of HA : L 1 6 = 0, but fail to reject H 0 : L 2 = 0. Equivalently, we can use the CONTRAST or ESTIMATE statement in PROC GLM to get a P value of .02 for H 0 : L 1 = 0 and a P value of .64 for H 0 : L 2 = 0.
The GLM Procedure Dependent Variable: length Contrast DF Contrast SS Mean Square F Value Pr > F Tree vs Meadow Pipits 1 4.96133333 4.96133333 5.49 0. Pipits vs Robins 1 0.19600000 0.19600000 0.22 0.
Standard Parameter Estimate Error t Value Pr > \vert t\vert Tree vs Meadow Pipits 0.81333333 0.34714253 2.34 0. Pipits vs Robins 0.14000000 0.30063425 0.47 0.
For Tukey’s method we use
W = qt,df, 1 −α
n , while for Fisher’s LSD method we use LSD = tdf, 1 −α/ 2
ni
ni′
The Studentized range term for W is now approximated using df = 60 to get q 6 , 60 ,. 95 = 4.16, and the t value for LSD is still t 80 ,. 975 = 1. 99. Thus we have
= 1.02 and LSD = 1. 99
Any two sample means that differ by 1.02 for Tukey or .69 for Fisher’s LSD lead us to declare their population means different. See the SAS output for an illustration of the results.
B 21.1300 15 Wren
Note in the SAS output that the values for W and LSD are slightly different than ours, because they do not have to approximate the degrees of freedom from the MSE.
Suppose that after seeing the data, we decide to compare the mean length of cuckoo eggs in Wren nests to all other species combined. Then L = μW − (μT P + μM P + μR + μP + μH )/5, where W = Wrens, T P = Tree Pipits, M P = Meadow Pipits, R = Robins, P = Pied Wagtails, and H = Hedge Sparrows. To test H 0 : L = 0 as a post hoc contrast, we use Scheffe’s method. Then we have
L̂ = yW − (yT P + yM P + yR + yP + yH )/5 = 21. 13 − (23.09 + 22.27 + 22.54 + 22.90 + 23.17)/5 = 1.66 and
V ar̂ (L̂ ) = MSE
∑^ t
i=
a^2 i ni
We need to compare L̂ to Scheffe’s S =
(t − 1)Ft− 1 ,df, 1 −α
V ar(L̂ ). Here we approximate the 84 degrees of freedom with df = 80, and get
(t − 1)Ft− 1 ,df, 1 −α
V ar(L̂ ) =
Since |L̂ | > S, we reject H 0 : L = 0, and conclude that μW − (μT P + μM P + μR + μP + μH )/ 5 6 = 0. Unfortunately, SAS only implements Scheffe’s method for pairwise contrasts, for which it is too conservative to use.