Estimate the Gini coefficient, which is a measure for inequality.
1 2 3 
inc 
either a numeric vector giving the equivalized disposable income,
or (if 
weights 
optional; either a numeric vector giving the personal sample
weights, or (if 
sort 
optional; either a numeric vector giving the personal IDs to be
used as tiebreakers for sorting, or (if 
years 
optional; either a numeric vector giving the different years of
the survey, or (if 
breakdown 
optional; either a numeric vector giving different domains,
or (if 
design 
optional and only used if 
cluster 
optional and only used if 
data 
an optional 
var 
a character string specifying the type of variance estimation to
be used, or 
alpha 
numeric; if 
na.rm 
a logical indicating whether missing values should be removed. 
... 
if 
The implementation strictly follows the Eurostat definition.
A list of class "gini"
(which inherits from the class
"indicator"
) with the following components:
value 
a numeric vector containing the overall value(s). 
valueByStratum 
a 
varMethod 
a character string specifying the type of variance
estimation used, or 
var 
a numeric vector containing the variance estimate(s), or

varByStratum 
a 
ci 
a numeric vector or matrix containing the lower and upper
endpoints of the confidence interval(s), or 
ciByStratum 
a 
alpha 
a numeric value giving the significance level used for
computing the confidence interval(s) (i.e., the confidence level is 1 

years 
a numeric vector containing the different years of the survey. 
strata 
a character vector containing the different domains of the breakdown. 
Andreas Alfons
A. Alfons and M. Templ (2013) Estimation of Social Exclusion Indicators from Complex Surveys: The R Package laeken. Journal of Statistical Software, 54(15), 1–25. URL http://www.jstatsoft.org/v54/i15/
Working group on Statistics on Income and Living Conditions (2004) Common crosssectional EU indicators based on EUSILC; the gender pay gap. EUSILC 131rev/04, Eurostat, Luxembourg.
1 2 3 4 5 6 7 8 
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
Please suggest features or report bugs with the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.