compute_generalized_lorenz_ordinates | R Documentation |
Compute the generalized Lorenz ordinates of dep_var
(i.e. the
share of total income observations up to each value in dep_var
amass
scaled by the mean income).
compute_generalized_lorenz_ordinates(dep_var, weights)
dep_var |
dependent variable of a distributional function. Discrete or continuous numeric vector. |
weights |
numeric vector of non-negative observation weights, hence of same length as |
thes generalized Lorenz ordinates for a vector dep_var
.
dep_var <- c(1, 3, 9, 16, 3, 7, 4, 9)
weights <- c(2, 1, 3, 4, 4, 1, 6, 3)
generalized_lorenz_ordinates <-
compute_generalized_lorenz_ordinates(
dep_var = dep_var,
weights = weights
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.