sgini {acid} | R Documentation |
Single-parameter Gini Coefficient
Description
This function computes the Single-parameter Gini coefficient (a.k.a. generalised Gini coefficient or extended Gini coefficient) for a vector of observations.
Usage
sgini(x, nu = 2, w = NULL)
Arguments
x |
a vector of observations. |
nu |
a scalar entailing the parameter that tunes the degree of the policy maker's aversion to inequality. See Yaari, 1988 for details. |
w |
a vector of weights. |
Value
Gini |
the Gini coefficient for the sample. |
bcGini |
the bias-corrected Gini coefficient for the sample. |
Author(s)
Alexander Sohn
References
van Kerm, P. (2009): sgini - Generalized Gini and Concentration coefficients (with factor decomposition) in Stata', CEPS/INSTEAD, Differdange, Luxembourg.
Yaari, M.E. (1988): A Controversal Proposal Concerning Inequality Measurement, Journal of Economic Theory, Vol. 44, pp. 381-397.
Examples
set.seed(123)
x <- rnorm(100,10,1)
gini(x)$Gini
sgini(x,nu=2)$Gini
[Package acid version 1.1 Index]