View source: R/inequalityMeasure.R
Prop20_20 | R Documentation |
20:20 ratio - originally the ratio of the total income of the 20% richest people to the 20% poorest people.
Prop20_20(X, W = rep(1, length(X)))
X |
is a data vector (numeric or ordered factor) |
W |
is a vector of weights |
20:20 ratio is calculated as follows:
Prop =\frac{H}{L}
where H
is share of 20% of the highest values,
L
is share of 20% of the lowest values.
The value of 20:20 ratio coefficient.
Panel Data Econometrics: Theoretical Contributions And Empirical Applications edited by Badi Hani Baltag
Notes on Statistical Sources and Methods - The Equality Trust.
# Compare weighted and unweighted result
X=1:10
W=1:10
Prop20_20(X)
Prop20_20(X,W)
data(Tourism)
#Prop20_20 proportion for Total expenditure with sample weights
X=Tourism$`Total expenditure`
W=Tourism$`Sample weight`
Prop20_20(X,W)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.