# 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