ginis: One and many Gini coefficients

View source: R/ginis.R

One and many Gini coefficientsR 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)

Rfast documentation built on April 3, 2025, 11:34 p.m.