View source: R/md_compute_mld.R
md_compute_mld | R Documentation |
Given a vector of weights and welfare, this functions computes the Mean Log Deviation (MLD).
md_compute_mld(welfare, weight, mean = NULL)
welfare |
numeric: A vector of income or consumption values |
weight |
numeric: A vector of population weights, optional, a vector of 1s if not specified. |
mean |
numeric: A value with the mean. Optional. |
numeric
wbpip:::md_compute_mld(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.