comparison_testers | R Documentation |
These testers are used internally by test but may be of interest outside.
wilcox_p(df) kruskal_p(df) aov_p(df)
df |
|
These testers are thin wrappers around stats::wilcox.test, stats::kruskal.test
and stats::aov. Type wilcox_p
(no bracket) for how to build your own.
numeric p.value (or NA_real
if not enough data or groups)
wilcox_p
: wilcoxon's rank test for pairwise differences
kruskal_p
: kruskal's test for global differences
aov_p
: analysis of variance test for both global and pairwise differences
# dummy tibble x <- tibble::tibble(g=rep(letters[1:2], each=10), y=stats::runif(20, -1, 1)) wilcox_p(x) aov_p(x) # on >2 groups x$g[15:20] <- "c" kruskal_p(x) aov_p(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.