gini {acid} | R Documentation |
Gini Coefficient
Description
This function computes the Gini coefficient for a vector of observations.
Usage
gini(x)
Arguments
x |
a vector of observations. |
Value
Gini |
the Gini coefficient for the sample. |
bcGini |
the bias-corrected Gini coefficient for the sample. |
Author(s)
Alexander Sohn
References
Cowell, F.A. (2000): Measurement of Inequality, in: Atkinson and Bourguignon (eds.), Handbook of Income Distribution, pp. 87-166, Elsevier, Amsterdam.
See Also
Examples
# generate vector (of incomes)
x <- c(541, 1463, 2445, 3438, 4437, 5401, 6392, 8304, 11904, 22261)
gini(x)
[Package acid version 1.1 Index]