calcSGini: Extended Gini Coefficient

Description Usage Arguments Value References See Also Examples

View source: R/InegConc.r

Description

Computes the Extended Gini coefficient for a vector.

Usage

1
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

1
2
3
4
5
data(hhbudgets)

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

IC2 documentation built on May 1, 2019, 7:49 p.m.