ent_allen | R Documentation |
Estimate entropy \insertCiteAllen2009divent from abundance or probability data and a phylogenetic or functional dendrogram.
ent_allen(x, tree, ...)
## S3 method for class 'numeric'
ent_allen(
x,
tree,
q = 1,
normalize = TRUE,
prune = FALSE,
as_numeric = FALSE,
...,
check_arguments = TRUE
)
## S3 method for class 'species_distribution'
ent_allen(
x,
tree,
q = 1,
normalize = TRUE,
prune = FALSE,
gamma = FALSE,
as_numeric = FALSE,
...,
check_arguments = TRUE
)
x |
An object, that may be a named numeric vector (names are species names) containing abundances or probabilities, or an object of class abundances or probabilities. |
tree |
an ultrametric, phylogenetic tree. May be an object of class phylo_divent, ape::phylo, ade4::phylog or stats::hclust. |
... |
Unused. |
q |
a number: the order of diversity. |
normalize |
if |
prune |
What to do when some species are in the tree but not in |
as_numeric |
if |
check_arguments |
if |
gamma |
if |
Estimators to deal with incomplete sampling are not implemented. Use function ent_phylo with argument if they are needed.
The phylogenetic entropy is calculated following
\insertCiteAllen2009;textualdivent for order q=1
and
\insertCiteLeinster2012;textualdivent for other orders.
The result is identical to the total entropy calculated by
ent_phylo.
It is much faster but no bias correction is available.
All species of the species_distribution
must be found in the tips of the
tree
.
A tibble with the site names, the estimators used and the estimated entropy.
# entropy of each community
ent_allen(paracou_6_abd, tree = paracou_6_taxo)
# gamma entropy
ent_allen(paracou_6_abd, tree = paracou_6_taxo, gamma = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.