Description Usage Arguments Value Examples
View source: R/calculate_ppi.R
Function to calculate Poverty Probability Index (PPI) for Kenya
1 | calculate_ppi(path, ccode, category = get_poverty_class(ccode = ccode))
|
path |
Directory path to IPA's country-specific PPI data analysis and collection XLSX file |
ccode |
A character value for three letter ISO code for country to calculate PPI for. Currently, 12 countries are supported by this function: 1) Colombia (COL); 2) Ivory Coast (CIV); 3) Dominican Republic (DOM); 4) Ghana (GHA); 5) Kenya (KEN); 6) Mozambique (MOZ); 7) Myanmar (MMR); 8) Peru (PER); 9) Philippines (PHL); 10) Rwanda (RWA); 11) Senegal (SEN); 12) Togo (TGO) |
category |
Poverty classifications. This defaults to all the poverty classifications available for the selected country |
A dataframe of PPI for each household in df
.
1 2 3 | calculate_ppi(path = paste(system.file("ppi", package = "ppicalc"),
"colombia.xlsx", sep = "/"),
ccode = "COL")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.