dunnT | R Documentation |
This function make use of dunn.test function to compute Dunn's test of multiple comparisons along groups (using rank sums) and looping it along multiple variables of interest (e.g., alpha diversity indexes).
dunnT(data, numberOfIndexes, formula, dunn.options, method = "BH")
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 |
dunn.options |
Further arguments to be passed to dunn.test |
method |
Method selected to adjust the p-values for multiple comparisons. See dunn.test for more detailes about methods and abbreviations. Default is set to Benjamini-Hochberg adjustment ("BH") |
Returns a data frame with dunn.test
results for all pairwise
comparisons, performed on each variable (determined by
numberOfIndexes
).For further details on parameters, check dunn.test.
dunn_location <- dunnT(alpha_diversity_table,4,"location")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.