R/md_compute_quantiles.R
md_compute_median.Rd
Compute median for microdata
md_compute_median(welfare, weight = rep(1, length(welfare)), lorenz = NULL)
numeric: A vector of income or consumption values.
numeric: A vector of weights. Default is a vector of ones
numeric: Output from md_compute_lorenz
md_compute_lorenz
numeric
md_compute_median(welfare = 1:2000, weight = rep(1, 2000)) #> [1] 1000