Docsity

Comparing Cuckoo Egg Length: Orthogonal Contrasts, Tukey's, Fisher's, Scheffe's - Prof. Ch, Exams of Statistics

Toggle sidebar
bg1
1 Multiple Comparisons: examples
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
3) Scheffe’s method for a post hoc contrast.
1.1 ANOVA results
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 <.0001
Error 84 75.9200000 0.9038095
Corrected Total 89 119.2128889
R-Square Coeff Var Root MSE length Mean
0.363156 4.221740 0.950689 22.51889
Source DF Type III SS Mean Square F Value Pr > F
species 5 43.29288889 8.65857778 9.58 <.0001
The GLM Procedure
Level of ------------length-----------
species N Mean Std Dev
HSprw 15 23.1700000 1.04690019
MPipit 15 22.2766667 1.15601944
PWtail 15 22.9033333 1.06761862
Robin 15 22.5433333 0.69638522
TPipit 15 23.0900000 0.90142744
Wren 15 21.1300000 0.74373574
1.2 Two a priori orthogonal contrasts
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:
L1=µT P −µMP and L2= (µ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
1
pf3
pf4

Partial preview of the text

Download Comparing Cuckoo Egg Length: Orthogonal Contrasts, Tukey's, Fisher's, Scheffe's - Prof. Ch and more Exams Statistics in PDF only on Docsity!

1 Multiple Comparisons: examples

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

  1. Scheffe’s method for a post hoc contrast.

1.1 ANOVA results

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.

1.2 Two a priori orthogonal contrasts

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

)^2 /15 + (

)^2 /15 + (−1)^2 /15) =. 0904.

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.

1.3 Tukey’s and Fisher’s methods

For Tukey’s method we use

W = qt,df, 1 −α

MSE

n , while for Fisher’s LSD method we use LSD = tdf, 1 −α/ 2

MSE(

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

W = 4. 16

= 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.

1.4 Scheffe’s method

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

(.904) ((1)^2 /15 + (−

)^2 /15 + (−

)^2 /15 + (−

)^2 /15 + (−

)^2 /15 + (−

)^2 /15) =. 072

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

S =

(t − 1)Ft− 1 ,df, 1 −α

V ar(L̂ ) =

5 F 5 , 80 ,. 95

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.