A SAS macro for testing differences among three or more independent groups using Kruskal-Wallis and Nemenyi tests.
- Author:
Yuewei, LIU
;
Weihong, CHEN
- Publication Type:Journal Article
- From:
Journal of Huazhong University of Science and Technology (Medical Sciences)
2012;32(1):130-4
- CountryChina
- Language:English
-
Abstract:
As a nonparametric method, the Kruskal-Wallis test is widely used to compare three or more independent groups when an ordinal or interval level of data is available, especially when the assumptions of analysis of variance (ANOVA) are not met. If the Kruskal-Wallis statistic is statistically significant, Nemenyi test is an alternative method for further pairwise multiple comparisons to locate the source of significance. Unfortunately, most popular statistical packages do not integrate the Nemenyi test, which is not easy to be calculated by hand. We described the theory and applications of the Kruskal-Wallis and Nemenyi tests, and presented a flexible SAS macro to implement the two tests. The SAS macro was demonstrated by two examples from our cohort study in occupational epidemiology. It provides a useful tool for SAS users to test the differences among three or more independent groups using a nonparametric method.