powered by
Compares Shannon diversity between samples.
test_diversity(object, ...)# S4 method for CountMatrix test_diversity(object, adjust = "holm", ...)
# S4 method for CountMatrix test_diversity(object, adjust = "holm", ...)
A \(m \times p\) matrix of count data.
Further arguments to be passed to internal methods.
A character string specifying the method for adjusting \(p\) values (see stats::p.adjust()).
character
stats::p.adjust()
A numeric matrix.
numeric
matrix
This test produces two sided pairwise comparisons: it returns a matrix of adjusted \(p\) values.
Magurran, A. E. (1988). Ecological Diversity and its Measurement. Princeton, NJ: Princeton University Press. 10.1007/978-94-015-7358-0.
Other statistics: independance
independance
# NOT RUN { ## Shannon diversity test data("merzbach", package = "folio") merzbach_count <- as_count(merzbach) div <- test_diversity(merzbach_count) # }
Run the code above in your browser using DataLab