Description Usage Arguments Value Examples
View source: R/06-quintile_ppi_cohort.R
Group population by quintiles based on their multiple poverty probabilities
1 | quintile_ppi_cohort(ppi, probs = c(0.2, 0.4, 0.6, 0.8, 1))
|
ppi |
A data frame of poverty probabilities or likelihoods. |
probs |
A numeric vector between 0 to 1 of quantile probabilities. Default values are a vector of equal probabilities (0.2, 0.4, 0.6, 0.8, 1). |
A data frame of multiple quintile classifications of between 1 to 5 of increasing poverty probabilities.
1 2 3 4 5 6 | # ppi for all poverty definitions using Bangladesh data from
# washdata package and PPI lookup table from ppitables package
# install.packages("washdata"); library(washdata)
ppi <- get_ppi_cohort(index = washdata::indicatorsDataBGD$ppi,
ppiTable = ppitables::ppiBGD2013)
quintile_ppi_cohort(ppi = ppi)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.