This article describes how to perform the Kruskal-Wallis rank sum test to assess whether the population median of at least one group is different from the population median of at least one other group, assuming identical shape and scale. This test can be used to test samples from two or more groups of equal or different sample sizes.
A Displayr document with a data set.
- Go to Anything > Advanced Analysis > Test > Nonparametric > Kruskal-Wallis Rank Sum Test.
- Specify the outcome variable you want to analyze under Inputs > Outcome in the object inspector.
- Under Inputs > Group, specify the variable that each observation comes from. The Group variable should be categorical, but if your data is numeric, then it will be automatically converted and grouped into two approximately equally sized groups, using the median.
OPTIONAL: You can adjust the following settings to modify your output: