r.med.sub: Average affluence gap in subpopulation

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/r.med.sub.R

Description

Computes the average affluence gap in subpopulation.

Usage

1
r.med.sub(x.sub, x, weight.sub, weight, k)

Arguments

x

income vector of subpopulation

x.sub

income vector of population

weight.sub

weight vector of subpopulation

weight

weight vector of population

k

multiple of the median income

Value

gap

the gap value

Author(s)

Alicja Wolny-Dominiak

References

Medeiros M. (2006) The rich and the poor: the construction of an affluence line from the poverty line. Social Indicators Research, 78, pp. 1-18.

See Also

r.med

Examples

1
2
3
4
data(affluence)
affluence$weight <- rep(1, nrow(affluence))
aff.sub <- subset(affluence, education == 2)
r.med.sub(aff.sub$income, affluence$income, aff.sub$weight, affluence$weight, 2)

affluenceIndex documentation built on Jan. 5, 2022, 5:07 p.m.