Learn R Programming

IC2 (version 1.0-1)

calcSGini: Extended Gini Coefficient

Description

Computes the Extended Gini coefficient for a vector.

Usage

calcSGini(x, w = NULL, param = 2)

Arguments

x
Numeric vector with non-negative values.
w
Numeric vector of sampling weigths (optional).
param
Parameter specifying the extended Gini index (must be strictly positive).

Value

A list of class "ICI" with components:
ineq
a list with components SGini (value of inequality index) and param (value of parameter).
nas
a list with NA counts, including components xNA, wNA and totalNA.

References

Cowell F.A. (2000) Measurement of Inequality. In Atkinson A.B., Bourguignon F. (Eds.) Handbook of Income Distribution. Amsterdam, Elsevier, Vol. 1, pp. 87-166.

Schechtman E., Yitzhaki S. (2008) Calculating the Extended Gini Coefficient from Grouped Data: A Covariance Presentation. Bulletin of Statistics & Economics, 2(S08), pp. 64-69.

See Also

decompSGini, curveLorenz

Examples

Run this code
data(hhbudgets)

calcSGini(hhbudgets[,"ingreso"], param=0.5)
summary(hhbudgets[,"mantenimiento"])
calcSGini(hhbudgets[,"mantenimiento"], w=hhbudgets[,"factor"])

Run the code above in your browser using DataLab