One and many Gini coefficients {Rfast} | R Documentation |
One and many Gini coefficients
Description
Many Gini coefficients.
Usage
gini(x)
ginis(x)
Arguments
x |
Either a vector or a matrix with non negative data. The rows are observations and the columns denote the variables. |
Details
We have implemented the fast version of the Gini coefficient. See wikipedia for more details.
Value
A value with the Gini coefficient or a vector with the Gini coefficient, one for each variable.
Author(s)
Michail Tsagris.
R implementation and documentation: Michail Tsagris <mtsagris@uoc.gr> and Manos Papadakis <papadakm95@gmail.com>.
See Also
colskewness, colmeans, corpairs
Examples
x <- matrix( rpois(300 * 100, 100), ncol = 100 )
a <- ginis(x)
[Package Rfast version 2.1.5.1 Index]