Last chance! 50% off unlimited learning
Sale ends in
Tsallis(Ps, q = 1, CheckArguments = TRUE)
bcTsallis(Ns, q = 1, Correction = "Best", CheckArguments = TRUE)
"None"
(no correction), "ChaoShen"
, "Grassberger"
, "Holste"
, "Bonachela"
, "ZhangGrabchak"
or "Best"
, the defaulTRUE
, the function arguments are verified. Should be set to FALSE
to save time when the arguments have been checked elsewhere.Coverage
. Use bcTsallis
and choose the Correction
.
Correction techniques are from Chao and Shen (2003), Grassberger (1988), Holste et al. (1998), Bonachela et al. (2008) and Zhang and Grabchak (2014).
Currently, the "Best"
correction is the max value of "ChaoShen"
and "Grassberger"
(Marcon et al., 2014).# Load Paracou data (number of trees per species in two 1-ha plot of a tropical forest)
data(Paracou618)
# Ps is the vector of probabilities
Ps <- Paracou618.MC$Ps
# Calculate Tsallis entropy of order 2, i.e. Simpson's index of diversity
Tsallis(Ps, 2)
# Ns is the vector of abundances of the metacommunity
Ns <- Paracou618.MC$Ns
# Calculate an unbiased estimator of Tsallis entropy of order 2, i.e. Simpson's index
bcTsallis(Ns, 2)
Run the code above in your browser using DataLab