| aov_all_vars | R Documentation |
Performs one-way ANOVA for all variables in a dataset.
aov_all_vars(
dataset,
column.class,
doTukey = TRUE,
write.file = FALSE,
file.out = NULL
)
dataset |
Dataset to analyze. |
column.class |
Metadata column used to define groups. |
doTukey |
Logical. If TRUE, also performs TukeyHSD post-hoc test. |
write.file |
Logical. If TRUE, writes results to file. |
file.out |
Output file name. |
A data frame with ANOVA results for all variables.
datamatrix <- matrix(
c(10, 11, 20, 21,
5, 6, 5, 6),
nrow = 2,
byrow = TRUE,
dimnames = list(c("x1", "x2"), c("s1", "s2", "s3", "s4"))
)
metadata <- data.frame(
group = factor(c("A", "A", "B", "B")),
row.names = c("s1", "s2", "s3", "s4")
)
dataset <- list(data = datamatrix, metadata = metadata)
aov_all_vars(dataset, "group", doTukey = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.