| concstats_simpson | R Documentation | 
Gini-Simpson Index
concstats_simpson(x, na.rm = TRUE)
| x | A non-negative numeric vector. | 
| na.rm | A logical vector that indicates whether  | 
concstats_simpson is the Gini-Simpson index, also known as
the Gini impurity (Gini's diversity index) in Machine Learning, Gibbs-Martin
index or Blau index in sociology and management studies. This index ranges
from (0, 1).
A single numeric value in decimal form.
Simpson, E. H. (1949). "Measurement of Diversity", Nature, 163, 688.
Jost, L. (2006). "Entropy and Diversity". Oikos, 113(2), 363-375.
# a vector of market shares
x <- c(0.4, 0.2, 0.25, 0.1, 0.05)
concstats_simpson(x)
# a vector with NA values
x <- c(0.4, 0.2, 0.25, 0.1, 0.05, NA)
concstats_simpson(x, na.rm = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.