|
ANDERSON DARLING K SAMPLE TESTName:
The k-sample Anderson-Darling statistic is
where
where k is the number of samples (groups), ni is the number of observations in group i, xij is the jth observation in the ith group, and z1, z2 ..., zL are the distinct values in the combined data set ordered from smallest to largest (L is less than n if there are tied observations). Chapter 8 of the MIL-HDBK-17 derives the formulas for the critical values of the Anderson-Darling test statistic. These formulas are rather involved and not given here. Dataplot uses the ANDYK routine from the MIL-HDBK-17 to compute the Anderson-Darling k sample test.
where <y> is the response variable; <groupid> is group (sample) identifier variable; and where the <SUBSET/EXCEPT/FOR qualification> is optional.
ANDERSON DARLING K SAMPLE TEST Y1 GROUP SUBSET GROUP > 2
READ VANGEL32.DAT Y X B ANDERSON DARLING K SAMPLE TEST Y X The following output is generated:
**********************************************
** ANDERSON DARLING K SAMPLE TEST Y X **
**********************************************
ANDERSON-DARLING K-SAMPLE TEST FOR COMMON GROUPS
1. STATISTICS
NUMBER OF OBSERVATIONS = 45
NUMBER OF GROUPS = 3
ANDERSON-DARLING K-SAMPLE TEST STATISTIC = 155.3625
2. FOR ANDERSON-DARLING K-SAMPLE TEST STATISTIC
95 % POINT = 1.992743
3. CONCLUSION (AT THE 5% LEVEL):
THE GROUPS ARE SIGNIFICANTLY DIFFERENT.
THUS: GROUPS SHOULD BE TREATED AS STRUCTURED.
Date created: 6/5/2001 |