r.is.sub | R Documentation |
Computes income share of the top p % in subpopulation.
r.is.sub(x.sub, x, weight.sub, weight, p)
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 |
r.2 |
the value of index |
Alicja Wolny-Dominiak, Anna Saczewska-Piotrowska
Brzezinski M. (2010) Income affluence in Poland. Social Indicators Research, 99, pp. 285-299.
r.is
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.