multitest {pcutils}R 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")
}

[Package pcutils version 0.2.5 Index]