group_test | R Documentation |
Performs multiple mean comparisons for a data.frame
group_test(
df,
group,
metadata = NULL,
method = "wilcox.test",
pattern = NULL,
p.adjust.method = "none",
threads = 1,
verbose = TRUE
)
df |
a data.frame |
group |
The compare group (categories) in your data, one column name of metadata when metadata exist or a vector whose length equal to columns number of df. |
metadata |
sample information dataframe contains group |
method |
the type of test. Default is wilcox.test. Allowed values include:
|
pattern |
a named vector matching the group, e.g. c('G1'=1,'G2'=3,'G3'=2), use the correlation analysis with specific pattern to calculate p-value. |
p.adjust.method |
p.adjust.method, see |
threads |
default 1 |
verbose |
logical |
data.frame
data(otutab)
group_test(otutab, metadata$Group, method = "kruskal.test")
group_test(otutab[, 1:12], metadata$Group[1:12], method = "wilcox.test")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.