Kruskal-Wallis rank-sum test (non-parametric between-groups omnibus)
Source:R/ops-timefreq.R
kruskalTest.RdThe non-parametric between-groups omnibus test: pools all observations,
ranks them, and tests whether the rank totals differ across k >= 2
independent groups. It is the distribution-free counterpart of the one-way
ANOVA (oneWayAnova) and, unlike it, makes no normality or
equal-variance assumption. The tie-corrected statistic and its p-value
reproduce base R stats::kruskal.test bit-for-bit (the H is accumulated in
the same order) and scipy.stats.kruskal to machine precision.
Value
A list with statistic (the tie-corrected H), p_value, df
(k - 1), k (number of groups) and n (total sample size).