|
FRIEDMAN TESTName:
The Friedman test assumes that there are k experimental treatments (k ≥ 2). The observations are arranged in b blocks, that is
Let R(Xij) be the rank assigned to Xij within block i (i.e., ranks within a given row). Average ranks are used in the case of ties. The ranks are summed to obtain
Then the Friedman test is
If the hypothesis of identical treatment effects is rejected, it is often desirable to determine which treatments are different (i.e., multiple comparisons). Treatments i and j are considered different if
<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.
FRIEDMAN TEST Y X1 X2 FRIEDMAN 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 Yk, each with b 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 K 1 NBLOCK LET TREAT = SEQUENCE 1 1 K FOR I = 1 1 NTOTAL LET Y2 = STACK Y1 Y2 ... YK FRIEDMAN TEST Y2 BLOCK TREAT
The treatment ranks and multiple comparisons are written to the file dpst2f.dat in the current directory. Comparisons that are statistically significant at the 95% level are flagged with a single asterisk while comparisons that are statistically significant at the 99% level are flagged with two asterisks.
SKIP 1
READ CONOVER.DAT Y BLOCK TREAT
FRIEDMAN Y BLOCK TREAT
The following output is generated.
FRIEDMAN TEST FOR TWO-WAY ANOVA
1. STATISTICS
NUMBER OF OBSERVATIONS = 48
NUMBER OF BLOCKS = 12
NUMBER OF TREATMENTS = 4
FRIEDMAN TEST STATISTIC (ORIGINAL) = 8.097345
A1 (SUM OF SQUARES OF RANKS) = 356.5000
C1 (CORRECTION FACTOR) = 300.0000
FRIEDMAN TEST STATISTIC (CONOVER) = 3.192198
2. PERCENT POINTS OF THE F REFERENCE DISTRIBUTION
FOR FRIEDMAN TEST STATISTIC
0 % POINT = 0.000000
50 % POINT = 0.8052071
75 % POINT = 1.435732
90 % POINT = 2.257744
95 % POINT = 2.891563
99 % POINT = 4.436786
99.9 % POINT = 6.882786
96.37845 % Point: 3.192198
3. CONCLUSION (AT THE 5% LEVEL):
THE 4 TREATMENTS DO NOT HAVE IDENTICAL EFFECTS
Date created: 2/3/2004 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||