gini: Gini coefficient of inequality

Description Usage Arguments Details Author(s) References See Also Examples

View source: R/gini.R

Description

The Gini coefficient of inequality

Usage

1
gini(x)

Arguments

x

A numeric vector

Details

Gini coefficient is a measure of inequality. Gini coefficient is based on Lorenz's curve, and the range of this coefficient is between 0 and 1. The more lower the value, the more equality the distribution is. The algorithm of this function is directly adopted from package "ineq" by Achim Zeileis.

Author(s)

Jinlong Zhang jinlongzhang01@gmail.com

References

F A Cowell: Measurement of Inequality, 2000, in A B Atkinson / F Bourguignon (Eds): Handbook of Income Distribution, Amsterdam

See Also

meangini

Examples

1
2
### 0.3076923
gini(c(1,3,2,1,1,1,4))


phylotools documentation built on May 19, 2017, 11:05 a.m.
Search within the phylotools package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.