Description Usage Arguments Details Author(s) See Also Examples
Computes the Gini/Simpson coefficient. NA
s from the data are omitted.
1 2 3 4 | GiniSimpson(x, na.rm = TRUE, ...)
## Default S3 method:
GiniSimpson(x, na.rm = TRUE, ...)
|
x |
a data.frame, a matrix-like, or a vector. |
na.rm |
a logical value to deal with NAs. |
... |
additional arguements (currently ignored). |
The Gini-Simpson quadratic index is a classic measure of diversity, widely used by social scientists and ecologists. The Gini-Simpson is also known as Gibbs-Martin index in sociology, psychology and management studies, which in turn is also known as the Blau index. The Gini-Simpson index is computed as 1 - λ = 1 - ∑_{i=1}^R p_i^2 = 1 - 1/{}^2D.
Daniel Marcelino, dmarcelino@live.com.
Gini
.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.