title: A SAS macro for testing differences among three or more independent groups using Kruskal-Wallis and Nemenyi tests.
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.
authors.affiliation: Department of Occupational and Environmental Health, School of Public Health, Tongji Medical College, Huazhong University of Science and Technology, Wuhan, 430030, China.|Hubei Center for Disease Control and Prevention, Wuhan, 430079, China.
authors.forename: Yuewei
authors.initials: Y
authors.lastname: Liu
authors.affiliation: Department of Occupational and Environmental Health, School of Public Health, Tongji Medical College, Huazhong University of Science and Technology, Wuhan, 430030, China. wchen@mails.tjmu.edu.cn.
authors.forename: Weihong
authors.initials: W
authors.lastname: Chen
mesh_terms: D000465:Algorithms; D000704:Analysis of Variance; D003627:Data Interpretation, Statistical; D015340:Epidemiologic Research Design; D011381:Programming Languages; D012984:Software; D018709:Statistics, Nonparametric