calcAtkinson: Atkinson Index of Inequality

Description Usage Arguments Value References See Also Examples

View source: R/InegConc.r

Description

Computes an Atkinson measure of inequality within a vector.

Usage

1
calcAtkinson(x, w = NULL, epsilon = 1)

Arguments

x

Numeric vector with non-negative values (strictly positive when epsilon=1)

w

Numeric vector of sampling weigths (optional)

epsilon

Parameter of the Atkinson index (must be strictly positive)

Value

A list of class "ICI" with components:

ineq

a list with components Atk (value of inequality index) and epsilon (value of parameter)

nas

a list with NA counts, including components xNA, wNA and totalNA

References

Atkinson A.B. (1970) On the Measurement of Inequality. Journal of Economic Theory, 2, pp. 244-263.

See Also

decompAtkinson

Examples

1
2
3
4
5
data(hhbudgets)

calcAtkinson(hhbudgets[, "ingreso"], epsilon=3)
summary(hhbudgets[, "transporte"])
calcAtkinson(hhbudgets[,"transporte"], w=hhbudgets[,"factor"])

Example output

$ineq
$ineq$index
      Atk 
0.6053387 

$ineq$parameter
epsilon 
      3 


$nas
$nas$xNA
[1] 0

$nas$wNA
NULL

$nas$totalNA
[1] 0


attr(,"class")
[1] "ICI"
   Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
      0    1836    3522    5194    6272  160858 
NULL

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