Learn R Programming

SciencesPo (version 1.3.9)

atkinson: Atkinson Index of Inequality

Description

Calculates the Atkinson Index. This inequality measure is espcially good at determining which end of the distribution is contributing most to the observed inequality.

Usage

atkinson(x, n = rep(1, length(x)), parameter = 0.5, na.rm = FALSE, ...)

atkinson(x, n = rep(1, length(x)), parameter = 0.5, na.rm = FALSE, ...)

Arguments

x
A vector of data values of non-negative elements.
n
A vector of frequencies of the same length as x.
parameter
A parameter of the inequality measure (if set to NULL the default parameter of the respective measure is used).
na.rm
A logical. Should missing values be removed? The Default is set to na.rm=FALSE.
...
Additional arguements (currently ignored)

References

Cowell, F. A. (2000) Measurement of Inequality in Atkinson, A. B. / Bourguignon, F. (Eds): Handbook of Income Distribution. Amsterdam.

Cowell, F. A. (1995) Measuring Inequality Harvester Wheatshef: Prentice Hall.

See Also

herfindahl, rosenbluth, gini. For more details see the Indices vignette: vignette("Indices", package = "SciencesPo").

Examples

Run this code
if (interactive()) {
# generate a vector (of incomes)
x <- c(778, 815, 857, 888, 925, 930, 965, 990, 1012)

# compute Atkinson coefficient with parameter=0.5
atkinson(x, parameter=0.5)
}

Run the code above in your browser using DataLab