Tsallis(NorP, q = 1, Correction = "Best", CheckArguments = TRUE,
Ps = NULL, Ns = NULL)
bcTsallis(Ns, q = 1, Correction = "Best", CheckArguments = TRUE)
## S3 method for class 'ProbaVector':
Tsallis(NorP, q = 1, Correction = "Best", CheckArguments = TRUE,
Ps = NULL, Ns = NULL)
## S3 method for class 'AbdVector':
Tsallis(NorP, q = 1, Correction = "Best", CheckArguments = TRUE,
Ps = NULL, Ns = NULL)
## S3 method for class 'integer':
Tsallis(NorP, q = 1, Correction = "Best", CheckArguments = TRUE,
Ps = NULL, Ns = NULL)
## S3 method for class 'numeric':
Tsallis(NorP, q = 1, Correction = "Best", CheckArguments = TRUE,
Ps = NULL, Ns = NULL)
AbdVector
) or a probability vector (ProbaVector
). Contains either abundances or probabilities"None"
(no correction), "ChaoShen"
, "GenCov"
, "Grassberger"
, "Holste"
, "Bonachela"
, "ZhangGrabchak"
, or "
TRUE
, 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), (Marcon et al., 2014), which is actually the max value of "ChaoShen"
and "Grassberger"
, Zhang and Grabchak (2014), Chao and Jost (2015) and Marcon (2015).
Currently, the "Best"
correction is "ChaoWangJost"
(Chao, Wang and Jost, 2013 for $q=1$; Chao and Jost, 2015). This estimator contains an unbiased part concerning observed species, equal to that of Zhang and Grabchak (2014), and a (biased) estimator of the remaining bias based on the estimation of the species-accumulation curve. It is very efficient but very slow if the number of individuals is more than a few hundreds.
The unveiled estimators rely on Chao et al. (2015), completed by Marcon (2015). The actual probabilities of observed species are estimated and completed by a geometric distribution of the probabilities of unobserved species. The number of unobserved species is estimated by the Chao1 estimator ("UnveilC"
), following Chao et al. (2015), or by the iChao1 ("UnveiliC"
) or the jacknife ("UnveilJ"
). The "UnveilJ"
correction often has a lower bias but a greater variance (Marcon, 2015).
The functions are designed to be used as simply as possible. Tsallis
is a generic method. If its first argument is an abundance vector, an integer vector or a numeric vector which does not sum to 1, the bias corrected function bcTsallis
is called. Explicit calls to bcTsallis
(with bias correction) or to Tsallis.ProbaVector
(without correction) are possible to avoid ambiguity. The .integer
and .numeric
methods accept Ps
or Ns
arguments instead of NorP
for backward compatibility.# Load Paracou data (number of trees per species in two 1-ha plot of a tropical forest)
data(Paracou618)
# Ns is the total number of trees per species
Ns <- as.AbdVector(Paracou618.MC$Ns)
# Species probabilities
Ps <- as.ProbaVector(Paracou618.MC$Ns)
# Whittaker plot
plot(Ns)
# Calculate entropy of order 1, i.e. Shannon's entropy
Tsallis(Ps, 1)
# Calculate it with estimation bias correction
Tsallis(Ns, 1)
Run the code above in your browser using DataLab