kruskal-wallis test assumptions code example Example: kruskal wallis test in r kruskal.test(formula, data, subset, na.action, …)