|
COCHRAN TESTName:
The Cochran test assumes that there are c experimental treatments (c >= 2). The observations are arranged in r blocks, that is
The Friedman test is the usual non-parametric test for this kind of design. The Cochran test is applied for the special case of a binary response variable (i.e., it can have only one of two possible outcomes). Then the Cochran test is
<SUBSET/EXCEPT/FOR qualification> where <y> is the response variable; <block> is a variable that identifies the block; <treat> is a variable that identifies the treatment; and where the <SUBSET/EXCEPT/FOR qualification> is optional.
COCHRAN TEST Y X1 X2 COCHRAN TEST Y BLOCK TREATMENT SUBSET BLOCK > 2
If your data are in a format similar to that given in the DESCRIPTION section (i.e., you have colums Y1 to Yc, each with r rows), you can convert it to the format required by Dataplot with the commands:
LET NBLOCK = SIZE Y1 LET NTOTAL = K*NBLOCK LET BLOCK = SEQUENCE 1 1 NBLOCK FOR I = 1 1 NTOT LET Y2 TREAT= STACK Y1 Y2 Y3 Y4 Y5 COCHRAN TEST Y2 BLOCK TREAT
. Following example from p. 253 of Conovover
READ Y1 Y2 Y3
1 1 1
1 1 1
0 1 0
1 1 0
0 0 0
1 1 1
1 1 1
1 1 0
0 0 1
0 1 0
1 1 1
1 1 1
END OF DATA
LET N1 = SIZE X1
LET NTOT = 3*N1
LET BLOCK = SEQUENCE 1 1 N1 FOR I = 1 1 NTOT
LET Y TREAT = STACK Y1 Y2 Y3
COCHRAN Y BLOCK TREAT
This example generates the following output
COCHRAN NON-PARAMETRIC TEST FOR RANDOMIZED COMPLETE BLOCK DESIGN
FOR DICHOTOMOUS DATA
1. STATISTICS
NUMBER OF SUBJECTS (ROWS) = 11
NUMBER OF TREATMENTS = 3
COCHRAN TEST STATISTIC = 2.800000
2. PERCENT POINTS OF THE LARGE SAMPLE CHI-SQUARE REFERENCE DISTRIBUTION
FOR COCHRAN TEST STATISTIC
0 % POINT = 0.000000
50 % POINT = 1.386294
75 % POINT = 2.772589
90 % POINT = 4.605170
95 % POINT = 5.991464
99 % POINT = 9.210342
99.9 % POINT = 13.81554
75.34030 % Point: 2.800000
3. CONCLUSION (AT THE 5% LEVEL):
THE 3 TREATMENTS HAVE EQUAL EFFECTS
Date created: 12/5/2005 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||