r.med | R Documentation |
Computes the average affluence gap of population.
r.med(x, weight, k)
x |
income vector |
weight |
vector of weights |
k |
multiple of the median income |
Medeiros (2006) defined an average affluence gap. Weighted gap (with weights w_1,w_2,...,w_n
) is given by:
R^{Me}= \frac{\sum_{i=1}^n \max\{x_i-\rho_w,0\}w_i}{\sum_{i=1}^nw_i},
where x_i
is an income of individual i
, n
is the number of individuals, \rho_w
is the richness line.
Medeiros' index is not standarized and is an absolute measure of richness.
gap |
the value of the average affluence gap |
Alicja Wolny-Dominiak, Anna Saczewska-Piotrowska
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.
data(affluence)
r.med(affluence$income, weight = NULL, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.