Performs 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.
Technical details
Description
This test can be used to test samples from two or more groups of equal or different sample sizes.
Inputs
- Outcome The variable to analyse.
- Group Variable specifying the group that each observation comes from. Where this variable is numeric, it is automatically grouped into two approximately-equally-sized groups, using the median.
-
Output
- Summary Shows a nicely formatted table of the test results (default).
- R The original text-based output from the kruskal.test function.
- Variable names Display Variable Names in the output, instead of Variable Labels.
- More decimal places Display numeric values with 8 decimal places.
Output
Acknowledgements
Uses the kruskal.test function from the stats R package.
Method
- In Displayr: How to Perform Kruskal-Wallis Rank Sum Test
- In Q: Create > Test > Nonparametric > Kruskal-Wallis Rank Sum Test