ginis: Many Gini coefficients

View source: R/ginis.R

Many Gini coefficientsR Documentation

Many Gini coefficients

Description

Many Gini coefficients.

Usage

ginis(x)

Arguments

x

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 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(500 * 1000, 1000), ncol = 1000 )
a <- ginis(x)

Rfast documentation built on Nov. 9, 2023, 5:06 p.m.