Bt_prob_abu | R Documentation |
Estimates true species frequencies (including unobserved species). The
estimated species frequencies are bootstrapped to generate CI for diversity
estimates following the method of Chao and Jost 2015 MEE. We modified the
source code from SpadeR
so that parameter names matched analogous use
elsewhere in the MeanRarity
package. This function is copied directly
fromSpadeR:::Chat.Ind()
from the R package SpadeR 0.1.1 by Anne Chao, K. H.
Ma, T. C. Hsieh and Chun-Huo Chiu.
Bt_prob_abu(ab)
ab |
A numeric vector of species abundances or relative abundances. |
numeric vector of Estimated species frequencies
Chao2015MeanRarity
# a sample
ab <- c(1, 1, 1, 2, 2, 2, 3, 4, 5, 7, 9, 12, 13, 21, 25, 50)
# sample frequencies
freq <- (ab/sum(ab))
freq[order(freq, decreasing = TRUE)]
#estimated true frequencies
etf <- Bt_prob_abu(ab)
etf[order(etf , decreasing = TRUE)]
# adjustment evident from 4th species on, 2 new rare species added
sum(etf) #rel. abundances still sum to 1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.