1

Kruskal-Wallis ANOVA with SPSS

Dr. Hussam El-Gayar of the Urology & NephrologyCenter at MansouraUniversity in Egypt found my SPSS lessons and asked me a question about the analysis of some of his data. He wanted to compare six independent groups. His criterion variable is continuously distributed. He had already conducted a one-way parametric ANOVA with pairwise comparisons. I took a peek at the results of that analysis and at the raw data and became concerned that both the homogeneity of variance and the normality assumptions of that analysis were tenable. I split the file by the grouping variable

and obtained the stats necessary to determine if the assumptions of the parametric ANOVA were tenable. Click Analyze, Descriptive Statistics. Scoot the criterion variable into the Variable(s) box. Click Options and ask for means, variances, skewness, and kurtosis.

As you can see, there is both great heterogeneity of variance and, in some but not all groups, great skewness. In this case, a nonparametric analysis is indicated. An appropriate omnibus analysis is the Kruskal-Wallis ANOVA. To conduct it, click Analyze, Nonparametrics, K Independent Samples. Scoot the criterion variable in the Test Variable List and the grouping variable into the Grouping Variable box. Click Define Range and identify the lowest and highest numeric values for the grouping variable:

Click OK. The output includes mean ranks for each group:

Since our p value is less than the .05 criterion of statistical significance, we conclude that there are significant differences among the groups.

We still do not know which groups differ significantly from which other groups, so we continue on, comparing each group with each other group. If we make all possible pairwise comparisons, we make 15 comparisons: Group 1 with 2, 3, 4, 5, and 6; Group 2 with 3, 4, 5, and 6; Group 3 with 4, 5, and 6; Group 4 with 5 and 6; and Group 5 with 6.

The Mann-Whitney U test is appropriate for comparing two independent groups. Click Analyze, Nonparametric Tests, 2 Independent Samples. Scoot the criterion variable into the Test Variable List and the grouping variable into the Grouping Variable box. Click Define Groups and give the group numbers for the two groups to be compared. Here I have asked to compare group 1 with group 6:

Click OK. The output includes for each group the mean rank and sum of ranks. Both the Mann-Whitney and the Wilcoxon Rank Sum statistics are given. These two statistics are equivalent, yielding the same p value. Since our p value is less than the .05 criterion of statistical significance, we conclude that methods 1 and 6 differ from each other significantly.

Having illustrated how to compare two groups, I left to Dr. El-Gayar the task of making the remaining 14 pairwise comparisons.

One final comment: Since some of the groups are greatly skewed, it is a good idea to report medians rather than, or in addition to, means. SPSS Descriptives does not compute medians, but SPSS Frequencies does. Here is how to do it: First, split the file by the grouping method. Then click Analyze, Descriptive Statistics, Frequencies. Select the criterion variable and click Statistics. Check Median and click Continue. Click Format and check Suppress Tables With More Than ___ Categories. Enter the number 2 in the categories box and click Continue.

Click OK. The output includes the median for each group:

Copyright 2005, Karl L. Wuensch - All rights reserved.

 Copyright 2005, Karl L. Wuensch - All rights reserved.