wilcoxon.test | R Documentation |
Pairwise Wilcoxon Rank Sum Tests for multiple variables
wilcoxon.test(data, numberOfIndexes, formula, p.adjust.method, ...)
data |
a data frame, columns corresponding to indexes and rows
corresponding to samples. Further columns should be included with metadata.
This is used in argument |
numberOfIndexes |
Integer corresponding to the number of indexes to analyze. This will be taken as column numbers by the function. |
formula |
Metadata group name. This will group samples according to a
metadata column (corresponding to |
p.adjust.method |
method for adjusting p values (see p.adjust). Can be abbreviated |
... |
Further arguments passed to pairwise.wilcox.test. |
Returns a data frame with adjusted p-values for all pairwise
comparisons, performed on each variable (determined by
numberOfIndexes
).
wilcoxon_location<- wilcoxon.test(alpha_diversity_table, 4, "location", p.adjust.method="BH")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.