multitest | R Documentation |
anova (parametric) and kruskal.test (non-parametric). Perform one-way ANOVA test comparing multiple groups. LSD and TukeyHSD are post hoc test of anova. dunn and nemenyi are post hoc test of kruskal.test. t.test or wilcox is just perform t.test or wilcox.test in each two group (no p.adjust).
multitest(var, group, print = TRUE, return = FALSE)
var |
numeric vector |
group |
more than two-levels group vector |
print |
whether print the result |
return |
return which method result (tukeyHSD or LSD or wilcox?) |
No value or a dataframe.
if (requireNamespace("multcompView")) {
multitest(runif(30), rep(c("A", "B", "C"), each = 10), return = "wilcox")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.