Learn R Programming

tabula (version 1.7.0)

test_diversity: Diversity Test

Description

Compares Shannon diversity between samples.

Usage

test_diversity(object, ...)

# S4 method for matrix test_diversity(object, adjust = "holm", ...)

# S4 method for data.frame test_diversity(object, adjust = "holm", ...)

Value

A numeric

matrix.

Arguments

object

A \(m \times 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()).

Author

N. Frerebeau

Details

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

References

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

See Also

Other statistics: independance

Examples

Run this code
## Shannon diversity test
data("merzbach", package = "folio")
test_diversity(merzbach)

Run the code above in your browser using DataLab