r.is.sub {affluenceIndex} | R Documentation |
Income share of the top p % in subpopulation
Description
Computes income share of the top p % in subpopulation.
Usage
r.is.sub(x.sub, x, weight.sub, weight, p)
Arguments
x.sub |
income vector of subpopulation |
x |
income vector of population |
weight.sub |
weight vector of subpopulation |
weight |
weight vector of population |
p |
the order of quantile. Must be in [0,1] as probability |
Value
r.2 |
the value of index |
Author(s)
Alicja Wolny-Dominiak, Anna Saczewska-Piotrowska
References
Brzezinski M. (2010) Income affluence in Poland. Social Indicators Research, 99, pp. 285-299.
See Also
Examples
data(affluence)
affluence$weight <- rep(1, nrow(affluence))
aff.sub <- subset(affluence, education == 2)
r.is.sub(aff.sub$income, affluence$income, aff.sub$weight, affluence$weight, 0.9)
[Package affluenceIndex version 2.1 Index]