View source: R/md_compute_povline_lcu.R
md_compute_povline_lcu | R Documentation |
Compute the LCU poverty line for microdata.
md_compute_povline_lcu(
welfare,
povline,
weight,
popshare,
requested_mean,
data_mean
)
welfare |
numeric: A vector of income or consumption values |
povline |
numeric: Poverty line in international dollars |
popshare |
numeric: Share of population for which the corresponding quantile is desired. Default .5 (i.e., weighted median) |
requested_mean |
numeric: Welfare mean in international dollars |
data_mean |
numeric: Data mean. |
list
# Load and clean example data
data("md_ABC_2000_income")
df <- wbpip:::md_clean_data(
md_ABC_2000_income,
welfare = 'welfare',
weight = 'weight')$data
# Compute LCU poverty line
res <- wbpip:::md_compute_povline_lcu(
df$welfare, df$weight,
popshare = NULL,
requested_mean = 5000,
data_mean = 4000)
str(res)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.