Description Usage Arguments Details Value Note Author(s) See Also Examples
View source: R/multiple_Hutcheson_t_test.R
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.
1 | multiple_Hutcheson_t_test(x, shannon.base = exp(1))
|
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). |
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()
.
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.
Missing values will be replaced with zero.
David Ramirez Delgado linfocitoth1@gmail.com.
Hugo Salinas hugosal@comunidad.unam.mx.
See Hutcheson_t_test
for Hutcheson's t-test details.
1 2 3 | data("polychaeta_abundance")
multiple_Hutcheson_t_test(x = polychaeta_abundance,
shannon.base = 10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.