| test.anova | R Documentation |
Performs ANOVA (and Tukey HSD) if data meet normality and homogeneity assumptions. Otherwise, automatically recommends Kruskal-Wallis/Dunn.
test.anova(
...,
title = "ANOVA/Tukey HSD",
xlab = "Group",
ylab = "Value",
style = c("boxplot", "violin", "mono", "halfeye"),
help = FALSE,
verbose = TRUE
)
... |
Vectors or a data.frame with >= 2 columns. |
title |
Plot title. |
xlab |
X-axis label. |
ylab |
Y-axis label. |
style |
Aesthetic style of the generated plot. |
help |
If TRUE, shows help. |
verbose |
If TRUE, shows detailed messages. |
An aov object or a recommendation message.
df <- data.frame(
control = rnorm(30, 10),
treatment = rnorm(30, 12),
test = rnorm(30, 11)
)
test.anova(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.