View source: R/md_compute_quantiles.R
md_compute_quantiles | R Documentation |
Compute quantiles for microdata with lorenz function
md_compute_quantiles(
welfare = NULL,
weight = rep(1, length(welfare)),
n_quantile = 10,
lorenz = NULL
)
welfare |
numeric: A vector of income or consumption values. |
weight |
numeric: A vector of weights. Default is a vector of ones, |
lorenz |
numeric: Output from |
n_quantiles |
numeric: Number of quantiles for which share of total income is desired. Default is 10. |
list
md_compute_quantiles(welfare = 1:2000, weight = rep(1, 2000))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.