Gini-Simpson Index
Arguments
- x
A non-negative numeric vector.
- na.rm
A logical vector that indicates whether
NA
values should be excluded or not. Must be eitherTRUE
orFALSE
. The default isTRUE
. If set toFALSE
the computation yieldsNA
ifNA
values are present.
Details
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).