One and many Gini coefficients | R Documentation |
Many Gini coefficients.
gini(x)
ginis(x)
x |
Either a vector or a matrix with non negative data. The rows are observations and the columns denote the variables. |
We have implemented the fast version of the Gini coefficient. See wikipedia for more details.
A value with the Gini coefficient or a vector with the Gini coefficient, one for each variable.
Michail Tsagris.
R implementation and documentation: Michail Tsagris <mtsagris@uoc.gr> and Manos Papadakis <papadakm95@gmail.com>.
colskewness, colmeans, corpairs
x <- matrix( rpois(300 * 100, 100), ncol = 100 )
a <- ginis(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.