View source: R/md_infer_poverty_line.R
md_infer_poverty_line | R Documentation |
Infer poverty line for microdata.
md_infer_poverty_line(welfare, weight, popshare = 0.5, include = FALSE)
welfare |
numeric: A vector of income or consumption values |
popshare |
numeric: Share of population for which the corresponding quantile is desired. Default .5 (i.e., weighted median) |
include |
logical: TO BE DOCUMENTED. |
This function calculate percentiles corresponding to the specified share of population (in percentages).
numeric
wbpip:::md_infer_poverty_line(1:2000, weight = rep(1, 2000))
wbpip:::md_infer_poverty_line(1:2000,
weight = rep(1, 2000),
popshare = .2
)
wbpip:::md_infer_poverty_line(1:2000,
weight = rep(1, 2000),
popshare = .6
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.