test_diversity: Diversity Test

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Compares Shannon diversity between samples.

Usage

1
2
3
4
test_diversity(object, ...)

## S4 method for signature 'CountMatrix'
test_diversity(object, adjust = "holm", ...)

Arguments

object

A m x p matrix of count data.

...

Further arguments to be passed to internal methods.

adjust

A character string specifying the method for adjusting p values (see stats::p.adjust()).

Details

This test produces two sided pairwise comparisons: it returns a matrix of adjusted p values.

Value

A numeric matrix.

Author(s)

N. Frerebeau

References

Magurran, A. E. (1988). Ecological Diversity and its Measurement. Princeton, NJ: Princeton University Press. doi: 10.1007/978-94-015-7358-0.

See Also

Other statistics: independance

Examples

1
2
3
4
## Shannon diversity test
data("merzbach", package = "folio")
merzbach_count <- as_count(merzbach)
div <- test_diversity(merzbach_count)

tabula documentation built on May 25, 2021, 5:11 p.m.