View source: R/mobr_boxplots.R
calc_SPIE | R Documentation |
S_PIE is the effective number of species transformation of the probability of interspecific encounter (PIE) which is equal to the number of equally common species that result in that value of PIE.
calc_SPIE(x, PIE_replace = FALSE)
x |
can either be a: 1) mob_in object, 2) community matrix-like object in which rows represent plots and columns represent species, or 3) a vector which contains the abundance of each species. |
PIE_replace |
if TRUE, sampling with replacement is used. Otherwise, sampling without replacement (default). |
By default the sample size corrected version is returned (PIE_replace =
FALSE
), which is the asymptotic estimator for the Hill number of diversity order
q=2 (Chao et al, 2014). If PIE_replace = TRUE
the uncorrected hill number is
returned. This is the same as vegan::diversity(x, index="invsimpson").
either a single S_PIE value or vector of S_PIE values.
Chao, A., Gotelli, N. J., Hsieh, T. C., Sander, E. L., Ma, K. H., Colwell, R. K., & Ellison, A. M. (2014). Rarefaction and extrapolation with Hill numbers: A framework for sampling and estimation in species diversity studies. Ecological Monographs 84(1), 45-67.
calc_PIE
data(inv_comm)
calc_SPIE(inv_comm)
calc_SPIE(inv_comm, PIE_replace = TRUE)
calc_SPIE(c(23,21,12,5,1,2,3), PIE_replace=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.