multiple_Hutcheson_t_test: Multiple Hutcheson t-tests comparisons between communities.

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

View source: R/multiple_Hutcheson_t_test.R

Description

This function computes the p-values of the Hutcheson t-test to test the significance of the difference between more than two communities Shannon diversity indexes, in a pairwise way.

Usage

1
multiple_Hutcheson_t_test(x, shannon.base = exp(1))

Arguments

x

Numeric dataframe or matrix of abundance of species per community sample. Columns must correspond to the samples and rows to species.

shannon.base

Numeric value indicating the logarithm base for computing the Shannon indexes. Defaults to exp(1).

Details

This function performs Hutcheson's t-tests for comparing multiple diversity indexes pairwise. This test is based on the Shannon diversity index computed using a logarithm base specified by the user. The alternative hypothesis is one-sided, chosen automatically according to the sign of the difference between each pair of communities tested. The resulting p-values of the test are returned in a matrix. To see full details of the results of the test comparing two communities it is better to use Hutcheson_t_test().

Value

A matrix whose entries are the p-values from the test result rounded to five digits. Self-comparison elements (matrix diagonal) are flagged with NA. The names of the rows and columns are the names of the communities with their Shannon diversity index.

Note

Missing values will be replaced with zero.

Author(s)

David Ramirez Delgado linfocitoth1@gmail.com.

Hugo Salinas hugosal@comunidad.unam.mx.

See Also

See Hutcheson_t_test for Hutcheson's t-test details.

Examples

1
2
3
data("polychaeta_abundance")
multiple_Hutcheson_t_test(x = polychaeta_abundance,
                           shannon.base = 10)

ecolTest documentation built on Feb. 15, 2021, 5:06 p.m.