PROC NPAR1WAY computes a one-way ANOVA test for each score type that you specify. Under the null hypothesis of no difference among class levels (samples), this test statistic has an asymptotic chi-square distribution with degrees of freedom, where is the number of class levels. For Wilcoxon scores, this test is known as the Kruskal-Wallis test.

Exact one-way ANOVA tests are also available for multisample data (where the data are classified into more than two levels). For two-sample data, exact simple linear rank tests are available. PROC NPAR1WAY computes exact tests for each score type that you specify in the EXACT statement. See the section Exact Tests for details.

PROC NPAR1WAY computes the one-way ANOVA test statistic as

where is the total of scores for class level , is the expected total for level under the null hypothesis of no difference among levels, is the number of observations in level , and is the sample variance of the scores. The total of scores for class level is given by

where is the score for observation , and indicates whether observation is in level . The expected total of scores for class level under the null hypothesis is equal to

The sample variance of the scores is computed as

where is the average score,