Logic for computing new aggregate

pip_grp_logic(
  country = "all",
  year = "all",
  povline = 1.9,
  group_by = c("none", "wb"),
  welfare_type = c("all", "consumption", "income"),
  reporting_level = c("all", "national"),
  lkup,
  debug = FALSE,
  censor = TRUE
)

Arguments

country

character: Country ISO 3 codes

year

integer: Reporting year

povline

numeric: Poverty line

group_by

character: Will return aggregated values for predefined sub-groups

welfare_type

character: Welfare type

reporting_level

character: Geographical reporting level

lkup

list: A list of lkup tables

debug

logical: If TRUE poverty calculations from wbpip will run in debug mode

censor

logical: Triggers censoring of country/year statistics

Value

data.table

Examples

if (FALSE) {
# Create lkups
}