multitest: Multi-groups test

View source: R/statistics.R

multitestR Documentation

Multi-groups test

Description

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).

Usage

multitest(var, group, print = TRUE, return = FALSE)

Arguments

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?)

Value

No value or a dataframe.

Examples

if (requireNamespace("multcompView")) {
  multitest(runif(30), rep(c("A", "B", "C"), each = 10), return = "wilcox")
}

pcutils documentation built on June 26, 2024, 1:06 a.m.