Compute the main PIP poverty and inequality statistics.
character: Country ISO 3 codes
integer: Reporting year
numeric: Poverty line
numeric: Proportion of the population living below the poverty line
logical: If set to TRUE, will interpolate / extrapolate values for missing years
character: Will return aggregated values for predefined sub-groups
character: Welfare type
character: Geographical reporting level
numeric: Custom Purchase Power Parity value
list: A list of lkup tables
logical: If TRUE poverty calculations from wbpip
will run in
debug mode
logical: Triggers censoring of country/year statistics
data.table
if (FALSE) {
# Create lkups
lkups <- create_lkups("<data-folder>")
# A single country and year
pip(country = "AGO",
year = 2000,
povline = 1.9,
lkup = lkups)
# All years for a single country
pip(country = "AGO",
year = "all",
povline = 1.9,
lkup = lkups)
# Fill gaps
pip(country = "AGO",
year = "all",
povline = 1.9,
fill_gaps = TRUE,
lkup = lkups)
# Group by regions
pip(country = "all",
year = "all",
povline = 1.9,
group_by = "wb",
lkup = lkups)
}