coverage | R Documentation |
coverage()
calculates an estimator of the sample coverage of a community
described by its abundance vector.
coverage_to_size()
estimates the sample size corresponding to the chosen
sample coverage.
coverage(x, ...)
## S3 method for class 'numeric'
coverage(
x,
estimator = c("ZhangHuang", "Chao", "Turing", "Good"),
level = NULL,
as_numeric = FALSE,
...,
check_arguments = TRUE
)
## S3 method for class 'abundances'
coverage(
x,
estimator = c("ZhangHuang", "Chao", "Turing", "Good"),
level = NULL,
...,
check_arguments = TRUE
)
coverage_to_size(x, ...)
## S3 method for class 'numeric'
coverage_to_size(
x,
sample_coverage,
estimator = c("ZhangHuang", "Chao", "Turing", "Good"),
as_numeric = FALSE,
...,
check_arguments = TRUE
)
## S3 method for class 'abundances'
coverage_to_size(
x,
sample_coverage,
estimator = c("ZhangHuang", "Chao", "Turing", "Good"),
...,
check_arguments = TRUE
)
x |
An object. |
... |
Unused. |
estimator |
An estimator of the sample coverage.
"ZhangHuang" is the most accurate but does not allow choosing a |
level |
The level of interpolation or extrapolation, i.e. an abundance. |
as_numeric |
if |
check_arguments |
if |
sample_coverage |
The target sample coverage. |
The sample coverage C
of a community is the total probability of
occurrence of the species observed in the sample.
1-C
is the probability for an individual of the whole community to
belong to a species that has not been sampled.
The historical estimator is due to Turing \insertCiteGood1953divent. It only relies on singletons (species observed only once). Chao's \insertCiteChao2010adivent estimator uses doubletons too and Zhang-Huang's \insertCiteChao1988,Zhang2007divent uses the whole distribution.
If level
is not NULL
, the sample coverage is interpolated or extrapolated.
Interpolation by the Good estimator relies on the equality between sampling
deficit and the generalized Simpson entropy \insertCiteGood1953divent.
The \insertCiteChao2014;textualdivent estimator allows extrapolation,
reliable up a level equal to the double size of the sample.
coverage()
returns a named number equal to the calculated sample coverage.
The name is that of the estimator used.
coverage_to_size()
returns a number equal to the sample size corresponding
to the chosen sample coverage.
coverage(paracou_6_abd)
coverage_to_size(paracou_6_abd, sample_coverage = 0.9)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.