- kruskal-wallis-test groupsprocedure
The Kruskal-Wallis test: the rank-based counterpart of one-way-anova-on-sequences, which tests whether k groups come from the same distribution without assuming one. All values are ranked together, ties sharing the mean rank, and the statistic H is corrected for ties. Returns three values: H, its significance p from the chi-square distribution on k - 1 degrees of freedom, and k - 1. The approximation needs about five values per group to be reliable. With the PlantGrowth groups above, the result is the same as that of kruskal.test in R:
> (kruskal-wallis-test (list ctrl trt1 trt2)) 7.9882287494437 0.018423755731472 2