hurl | R Documentation |
Implements estimate described in Dauby and Hardy 2011 for a class of
rarefaction-based ENS diversity estimates. These estimates suffer from
minimal bias and are quite efficient, while retaining some of the nice
properties of Hill diversity metrics. They are parameterized by sample size
k
, and when k == 2
they are equivalent to Hill-Simpson diversity. One
interpretation is that this ENS is the number of species in a perfectly even
assemblage that would have the same rarefied richness as the focal
assemblage/sample. Larger k values emphasize rare species, and as k
approaches community size the Hulbert ENS approaches true richness. Unbiased
estimators are given for k < sample size.
hurl(ab, k, maxit = 1e+05, tol = 1e-12)
ab |
A numeric vector of species abundances or relative abundances. |
k |
integer sample size parameter for rarefaction |
maxit |
integer, maximum number of iterations |
tol |
numeric, threshold for convergence |
Numeric scalar: estimated Hurlbert ENS
Dauby2012MeanRarity \insertRefHurlbert1971MeanRarity
ab = sample(10:50, 50, replace =TRUE)
hurl(ab, 2)
# not run
# hurl(ab, 1e5) # returns an error
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.