diff --git a/NEWS.md b/NEWS.md index d85644e2..efd0b052 100644 --- a/NEWS.md +++ b/NEWS.md @@ -2,13 +2,8 @@ This is the tenth CRAN release of `ppitables`. In this release, I added: -* new PPI tables for Uganda using the new PPI calculation approach developed -by the International Poverty Alliance (IPA) based on data from the Uganda -National Panel Survey of 2020 - -* new PPI tables for Tanzania using the new PPI calculation approach developed -by the International Poverty Alliance (IPA) based on data from the Tanzania -Household Budget Survey of 2017/2018 +* new PPI tables for multiple countries released during the period of 2021 to +2023 * updated `steer` data that serves as an index to the tables to include the new Indonesia PPI tables diff --git a/R/00_benin.R b/R/00_benin.R new file mode 100644 index 00000000..d12f136d --- /dev/null +++ b/R/00_benin.R @@ -0,0 +1,141 @@ +################################################################################ +# +#' Poverty Probability Index (PPI) lookup table for Benin +#' +#' @format A data frame with 7 columns and 101 rows: +#' \describe{ +#' \item{\code{score}}{PPI score} +#' \item{\code{nl100}}{National poverty line (100\%)} +#' \item{\code{nl150}}{National poverty line (150\%)} +#' \item{\code{nl200}}{National poverty line (200\%)} +#' \item{\code{extreme}}{USAID extreme poverty} +#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} +#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} +#' } +#' +#' @examples +#' # Access Benin PPI table +#' ppiBEN2012 +#' +#' # Given a specific PPI score (from 0 - 100), get the row of poverty +#' # probabilities from PPI table it corresponds to +#' ppiScore <- 50 +#' ppiBEN2012[ppiBEN2012$score == ppiScore, ] +#' +#' # Use subset() function to get the row of poverty probabilities corresponding +#' # to specific PPI score +#' ppiScore <- 50 +#' subset(ppiBEN2012, score == ppiScore) +#' +#' # Given a specific PPI score (from 0 - 100), get a poverty probability +#' # based on a specific poverty definition. In this example, the USAID +#' # extreme poverty definition +#' ppiScore <- 50 +#' ppiBEN2012[ppiBEN2012$score == ppiScore, "nl100"] +#' +#' @source \url{https://www.povertyindex.org} +#' +# +################################################################################ +"ppiBEN2012" + + + +################################################################################ +# +#' Poverty Probability Index (PPI) lookup table for Benin for 2022 for 11 +#' questions score card +#' +#' @format A data frame with 14 columns and 101 rows: +#' \describe{ +#' \item{\code{score}}{PPI score} +#' \item{\code{nl100}}{National poverty line (100\%)} +#' \item{\code{nl150}}{National poverty line (150\%)} +#' \item{\code{nl200}}{National poverty line (200\%)} +#' \item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)} +#' \item{\code{ppp320}}{Below $3.20 per day purchasing power parity (2011)} +#' \item{\code{ppp550}}{Below $5.50 per day purchasing power parity (2011)} +#' \item{\code{ppp215}}{Below $2.15 per day purchasing power parity (2017)} +#' \item{\code{ppp365}}{Below $3.65 per day purchasing power parity (2017)} +#' \item{\code{ppp685}}{Below $6.85 per day purchasing power parity (2017)} +#' \item{\code{percentile20}}{Below 20th percentile poverty line} +#' \item{\code{percentile40}}{Below 40th percentile poverty line} +#' \item{\code{percentile60}}{Below 60th percentile poverty line} +#' \item{\code{percentile80}}{Below 80th percentile poverty line} +#' } +#' +#' @examples +#' # Access Benin PPI table +#' ppiBEN2022_11q +#' +#' # Given a specific PPI score (from 0 - 100), get the row of poverty +#' # probabilities from PPI table it corresponds to +#' ppiScore <- 50 +#' ppiBEN2022_11q[ppiBEN2022_11q$score == ppiScore, ] +#' +#' # Use subset() function to get the row of poverty probabilities corresponding +#' # to specific PPI score +#' ppiScore <- 50 +#' subset(ppiBEN2022_11q, score == ppiScore) +#' +#' # Given a specific PPI score (from 0 - 100), get a poverty probability +#' # based on a specific poverty definition. In this example, the USAID +#' # extreme poverty definition +#' ppiScore <- 50 +#' ppiBEN2022_11q[ppiBEN2022_11q$score == ppiScore, "nl100"] +#' +#' @source \url{https://www.povertyindex.org} +#' +# +################################################################################ +"ppiBEN2022_11q" + + +################################################################################ +# +#' Poverty Probability Index (PPI) lookup table for Benin for 2022 for 6 +#' questions score card +#' +#' @format A data frame with 14 columns and 101 rows: +#' \describe{ +#' \item{\code{score}}{PPI score} +#' \item{\code{nl100}}{National poverty line (100\%)} +#' \item{\code{nl150}}{National poverty line (150\%)} +#' \item{\code{nl200}}{National poverty line (200\%)} +#' \item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)} +#' \item{\code{ppp320}}{Below $3.20 per day purchasing power parity (2011)} +#' \item{\code{ppp550}}{Below $5.50 per day purchasing power parity (2011)} +#' \item{\code{ppp215}}{Below $2.15 per day purchasing power parity (2017)} +#' \item{\code{ppp365}}{Below $3.65 per day purchasing power parity (2017)} +#' \item{\code{ppp685}}{Below $6.85 per day purchasing power parity (2017)} +#' \item{\code{percentile20}}{Below 20th percentile poverty line} +#' \item{\code{percentile40}}{Below 40th percentile poverty line} +#' \item{\code{percentile60}}{Below 60th percentile poverty line} +#' \item{\code{percentile80}}{Below 80th percentile poverty line} +#' } +#' +#' @examples +#' # Access Benin PPI table +#' ppiBEN2022_6q +#' +#' # Given a specific PPI score (from 0 - 100), get the row of poverty +#' # probabilities from PPI table it corresponds to +#' ppiScore <- 50 +#' ppiBEN2022_6q[ppiBEN2022_6q$score == ppiScore, ] +#' +#' # Use subset() function to get the row of poverty probabilities corresponding +#' # to specific PPI score +#' ppiScore <- 50 +#' subset(ppiBEN2022_6q, score == ppiScore) +#' +#' # Given a specific PPI score (from 0 - 100), get a poverty probability +#' # based on a specific poverty definition. In this example, the USAID +#' # extreme poverty definition +#' ppiScore <- 50 +#' ppiBEN2022_6q[ppiBEN2022_6q$score == ppiScore, "nl100"] +#' +#' @source \url{https://www.povertyindex.org} +#' +# +################################################################################ +"ppiBEN2022_6q" diff --git a/R/00_bolivia.R b/R/00_bolivia.R new file mode 100644 index 00000000..3ec5f952 --- /dev/null +++ b/R/00_bolivia.R @@ -0,0 +1,94 @@ +################################################################################ +# +#' Poverty Probability Index (PPI) lookup table for Bolivia +#' +#' @format A data frame with 10 columns and 101 rows: +#' \describe{ +#' \item{\code{score}}{PPI score} +#' \item{\code{nl100}}{National poverty line (100\%)} +#' \item{\code{nl150}}{National poverty line (150\%)} +#' \item{\code{nl200}}{National poverty line (200\%)} +#' \item{\code{half100}}{Poorest half below 100\% national} +#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} +#' \item{\code{ppp200}}{Below $2.00 per day purchasing power parity (2005)} +#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} +#' \item{\code{ppp500}}{Below $5.00 per day purchasing power parity (2005)} +#' \item{\code{ppp844}}{Below $8.44 per day purchasing power parity (2005)} + +#' } +#' +#' @examples +#' # Access Bolivia PPI table +#' ppiBOL2015 +#' +#' # Given a specific PPI score (from 0 - 100), get the row of poverty +#' # probabilities from PPI table it corresponds to +#' ppiScore <- 50 +#' ppiBOL2015[ppiBOL2015$score == ppiScore, ] +#' +#' # Use subset() function to get the row of poverty probabilities corresponding +#' # to specific PPI score +#' ppiScore <- 50 +#' subset(ppiBOL2015, score == ppiScore) +#' +#' # Given a specific PPI score (from 0 - 100), get a poverty probability +#' # based on a specific poverty definition. In this example, the food +#' # poverty line definition +#' ppiScore <- 50 +#' ppiBOL2015[ppiBOL2015$score == ppiScore, "nl100"] +#' +#' @source \url{https://www.povertyindex.org} +#' +# +################################################################################ +"ppiBOL2015" + + +################################################################################ +# +#' Poverty Probability Index (PPI) lookup table for Bolivia for 2023 +#' +#' @format A data frame with 15 columns and 101 rows: +#' \describe{ +#' \item{\code{score}}{PPI score} +#' \item{\code{nl100}}{National poverty line (100\%)} +#' \item{\code{nl_extreme}}{National poverty line (extreme)} +#' \item{\code{nl150}}{National poverty line (150\%)} +#' \item{\code{nl200}}{National poverty line (200\%)} +#' \item{\code{ppp190}}{Below $1.25 per day purchasing power parity (2011)} +#' \item{\code{ppp320}}{Below $1.25 per day purchasing power parity (2011)} +#' \item{\code{ppp550}}{Below $2.00 per day purchasing power parity (2011)} +#' \item{\code{ppp215}}{Below $2.15 per day purchasing power parity (2017)} +#' \item{\code{ppp365}}{Below $3.65 per day purchasing power parity (2017)} +#' \item{\code{ppp685}}{Below $6.85 per day purchasing power parity (2017)} +#' \item{\code{percentile20}}{Below 20th percentile poverty line} +#' \item{\code{percentile40}}{Below 40th percentile poverty line} +#' \item{\code{percentile60}}{Below 60th percentile poverty line} +#' \item{\code{percentile80}}{Below 80th percentile poverty line} +#' } +#' +#' @examples +#' # Access Bolivia PPI table +#' ppiBOL2023 +#' +#' # Given a specific PPI score (from 0 - 100), get the row of poverty +#' # probabilities from PPI table it corresponds to +#' ppiScore <- 50 +#' ppiBOL2023[ppiBOL2023$score == ppiScore, ] +#' +#' # Use subset() function to get the row of poverty probabilities corresponding +#' # to specific PPI score +#' ppiScore <- 50 +#' subset(ppiBOL2023, score == ppiScore) +#' +#' # Given a specific PPI score (from 0 - 100), get a poverty probability +#' # based on a specific poverty definition. In this example, the food +#' # poverty line definition +#' ppiScore <- 50 +#' ppiBOL2023[ppiBOL2023$score == ppiScore, "nl100"] +#' +#' @source \url{https://www.povertyindex.org} +#' +# +################################################################################ +"ppiBOL2023" diff --git a/R/00_burkina_faso.R b/R/00_burkina_faso.R new file mode 100644 index 00000000..cc06a814 --- /dev/null +++ b/R/00_burkina_faso.R @@ -0,0 +1,153 @@ +################################################################################ +# +#' Poverty Probability Index (PPI) lookup table for Burkina Faso +#' +#' @format A data frame with 8 columns and 101 rows: +#' \describe{ +#' \item{\code{score}}{PPI score} +#' \item{\code{nl100}}{National poverty line (100\%)} +#' \item{\code{nl50}}{National poverty line (50\%)} +#' \item{\code{nl75}}{National poverty line (75\%)} +#' \item{\code{nl150}}{National poverty line (150\%)} +#' \item{\code{extreme}}{USAID extreme poverty} +#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} +#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} +#' } +#' @source \url{https://www.povertyindex.org} +#' +# +################################################################################ +"ppiBFA2011" + + +################################################################################ +# +#' Poverty Probability Index (PPI) lookup table for Burkina Faso +#' +#' @format A data frame with 18 columns and 101 rows: +#' \describe{ +#' \item{\code{score}}{PPI score} +#' \item{\code{food}}{Food poverty line} +#' \item{\code{nl100}}{National poverty line (100\%)} +#' \item{\code{nl150}}{National poverty line (150\%)} +#' \item{\code{nl200}}{National poverty line (200\%)} +#' \item{\code{ppp125}}{Below $1.00 per day purchasing power parity (2005)} +#' \item{\code{ppp200}}{Below $1.25 per day purchasing power parity (2005)} +#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} +#' \item{\code{ppp500}}{Below $5.00 per day purchasing power parity (2005)} +#' \item{\code{ppp844}}{Below $8.44 per day purchasing power parity (2005)} +#' \item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)} +#' \item{\code{ppp310}}{Below $3.10 per day purchasing power parity (2011)} +#' \item{\code{median}}{Median poverty line} +#' \item{\code{percentile20}}{Below 20th percentile poverty line} +#' \item{\code{percentile40}}{Below 40th percentile poverty line} +#' \item{\code{percentile50}}{Below 50th percentile poverty line} +#' \item{\code{percentile60}}{Below 60th percentile poverty line} +#' \item{\code{percentile80}}{Below 80th percentile poverty line} +#' } +#' @source \url{https://www.povertyindex.org} +#' +# +################################################################################ +"ppiBFA2014" + + +################################################################################ +# +#' Poverty Probability Index (PPI) lookup table for Burkina Faso +#' +#' @format A data frame with 15 columns and 101 rows: +#' \describe{ +#' \item{\code{score}}{PPI score} +#' \item{\code{nl100}}{National poverty line (100\%)} +#' \item{\code{nl150}}{National poverty line (150\%)} +#' \item{\code{nl200}}{National poverty line (200\%)} +#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} +#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} +#' \item{\code{ppp500}}{Below $5.00 per day purchasing power parity (2005)} +#' \item{\code{ppp100}}{Below $1.00 per day purchasing power parity (2011)} +#' \item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)} +#' \item{\code{ppp320}}{Below $3.20 per day purchasing power parity (2011)} +#' \item{\code{ppp550}}{Below $5.50 per day purchasing power parity (2011)} +#' \item{\code{percentile20}}{Below 20th percentile poverty line} +#' \item{\code{percentile40}}{Below 40th percentile poverty line} +#' \item{\code{percentile60}}{Below 60th percentile poverty line} +#' \item{\code{percentile80}}{Below 80th percentile poverty line} +#' } +#' +#' @examples +#' # Access Burkina Faso PPI table +#' ppiBFA2017 +#' +#' # Given a specific PPI score (from 0 - 100), get the row of poverty +#' # probabilities from PPI table it corresponds to +#' ppiScore <- 50 +#' ppiBFA2017[ppiBFA2017$score == ppiScore, ] +#' +#' # Use subset() function to get the row of poverty probabilities corresponding +#' # to specific PPI score +#' ppiScore <- 50 +#' subset(ppiBFA2017, score == ppiScore) +#' +#' # Given a specific PPI score (from 0 - 100), get a poverty probability +#' # based on a specific poverty definition. In this example, the national +#' # poverty line definition +#' ppiScore <- 50 +#' ppiBFA2017[ppiBFA2017$score == ppiScore, "nl100"] +#' +#' @source \url{https://www.povertyindex.org} +#' +# +################################################################################ +"ppiBFA2017" + + +################################################################################ +# +#' Poverty Probability Index (PPI) lookup table for Burkina Faso for 2023 +#' +#' @format A data frame with 14 columns and 101 rows: +#' \describe{ +#' \item{\code{score}}{PPI score} +#' \item{\code{nl100}}{National poverty line (100\%)} +#' \item{\code{nl150}}{National poverty line (150\%)} +#' \item{\code{nl200}}{National poverty line (200\%)} +#' \item{\code{ppp215}}{Below $1.25 per day purchasing power parity (2017)} +#' \item{\code{ppp365}}{Below $2.50 per day purchasing power parity (2017)} +#' \item{\code{ppp685}}{Below $5.00 per day purchasing power parity (2017)} +#' \item{\code{ppp190}}{Below $1.00 per day purchasing power parity (2011)} +#' \item{\code{ppp320}}{Below $1.90 per day purchasing power parity (2011)} +#' \item{\code{ppp550}}{Below $3.20 per day purchasing power parity (2011)} +#' \item{\code{percentile20}}{Below 20th percentile poverty line} +#' \item{\code{percentile40}}{Below 40th percentile poverty line} +#' \item{\code{percentile60}}{Below 60th percentile poverty line} +#' \item{\code{percentile80}}{Below 80th percentile poverty line} +#' } +#' +#' @examples +#' # Access Burkina Faso PPI table +#' ppiBFA2023 +#' +#' # Given a specific PPI score (from 0 - 100), get the row of poverty +#' # probabilities from PPI table it corresponds to +#' ppiScore <- 50 +#' ppiBFA2023[ppiBFA2023$score == ppiScore, ] +#' +#' # Use subset() function to get the row of poverty probabilities corresponding +#' # to specific PPI score +#' ppiScore <- 50 +#' subset(ppiBFA2023, score == ppiScore) +#' +#' # Given a specific PPI score (from 0 - 100), get a poverty probability +#' # based on a specific poverty definition. In this example, the national +#' # poverty line definition +#' ppiScore <- 50 +#' ppiBFA2023[ppiBFA2023$score == ppiScore, "nl100"] +#' +#' @source \url{https://www.povertyindex.org} +#' +# +################################################################################ +"ppiBFA2023" + + diff --git a/R/00_cambodia.R b/R/00_cambodia.R new file mode 100644 index 00000000..339ab910 --- /dev/null +++ b/R/00_cambodia.R @@ -0,0 +1,177 @@ +################################################################################ +# +#' Poverty Probability Index (PPI) lookup table for Cambodia +#' +#' @format A data frame with 9 columns and 101 rows: +#' \describe{ +#' \item{\code{score}}{PPI score} +#' \item{\code{nl100}}{National poverty line (100\%)} +#' \item{\code{nl150}}{National poverty line (150\%)} +#' \item{\code{nl200}}{National poverty line (200\%)} +#' \item{\code{median}}{Median poverty line} +#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} +#' \item{\code{ppp200}}{Below $2.00 per day purchasing power parity (2005)} +#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} +#' \item{\code{ppp500}}{Below $5.00 per day purchasing power parity (2005)} +#' } +#' +#' @examples +#' # Access Cambodia PPI table +#' ppiKHM2015_wb +#' +#' # Given a specific PPI score (from 0 - 100), get the row of poverty +#' # probabilities from PPI table it corresponds to +#' ppiScore <- 50 +#' ppiKHM2015_wb[ppiKHM2015_wb$score == ppiScore, ] +#' +#' # Use subset() function to get the row of poverty probabilities corresponding +#' # to specific PPI score +#' ppiScore <- 50 +#' subset(ppiKHM2015_wb, score == ppiScore) +#' +#' # Given a specific PPI score (from 0 - 100), get a poverty probability +#' # based on a specific poverty definition. In this example, the national +#' # poverty line definition +#' ppiScore <- 50 +#' ppiKHM2015_wb[ppiKHM2015_wb$score == ppiScore, "nl100"] +#' +#' @source \url{https://www.povertyindex.org} +#' +# +################################################################################ +"ppiKHM2015_wb" + + +################################################################################ +# +#' Poverty Probability Index (PPI) lookup table for Cambodia +#' +#' @format A data frame with 9 columns and 101 rows: +#' \describe{ +#' \item{\code{score}}{PPI score} +#' \item{\code{nl100}}{National poverty line (100\%)} +#' \item{\code{nl150}}{National poverty line (150\%)} +#' \item{\code{nl200}}{National poverty line (200\%)} +#' \item{\code{median}}{Median poverty line} +#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} +#' \item{\code{ppp200}}{Below $2.00 per day purchasing power parity (2005)} +#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} +#' \item{\code{ppp500}}{Below $5.00 per day purchasing power parity (2005)} +#' } +#' +#' @examples +#' # Access Cambodia PPI table +#' ppiKHM2015_gov +#' +#' # Given a specific PPI score (from 0 - 100), get the row of poverty +#' # probabilities from PPI table it corresponds to +#' ppiScore <- 50 +#' ppiKHM2015_gov[ppiKHM2015_gov$score == ppiScore, ] +#' +#' # Use subset() function to get the row of poverty probabilities corresponding +#' # to specific PPI score +#' ppiScore <- 50 +#' subset(ppiKHM2015_gov, score == ppiScore) +#' +#' # Given a specific PPI score (from 0 - 100), get a poverty probability +#' # based on a specific poverty definition. In this example, the national +#' # poverty line definition +#' ppiScore <- 50 +#' ppiKHM2015_gov[ppiKHM2015_gov$score == ppiScore, "nl100"] +#' +#' @source \url{https://www.povertyindex.org} +#' +# +################################################################################ +"ppiKHM2015_gov" + + +################################################################################ +# +#' Poverty Probability Index (PPI) lookup table for Cambodia +#' +#' @format A data frame with 6 columns and 101 rows: +#' \describe{ +#' \item{\code{score}}{PPI score} +#' \item{\code{nl100}}{National poverty line (100\%)} +#' \item{\code{nl150}}{National poverty line (150\%)} +#' \item{\code{nl200}}{National poverty line (200\%)} +#' \item{\code{ppp125}}{Below $1.25 per day purchasing power poverty (2005)} +#' \item{\code{ppp250}}{Below $2.50 per day purchasing power poverty (2005)} +#' } +#' +#' @examples +#' # Access Cambodia PPI table +#' ppiKHM2015 +#' +#' # Given a specific PPI score (from 0 - 100), get the row of poverty +#' # probabilities from PPI table it corresponds to +#' ppiScore <- 50 +#' ppiKHM2015[ppiKHM2015$score == ppiScore, ] +#' +#' # Use subset() function to get the row of poverty probabilities corresponding +#' # to specific PPI score +#' ppiScore <- 50 +#' subset(ppiKHM2015, score == ppiScore) +#' +#' # Given a specific PPI score (from 0 - 100), get a poverty probability +#' # based on a specific poverty definition. In this example, the national +#' # poverty line definition +#' ppiScore <- 50 +#' ppiKHM2015[ppiKHM2015$score == ppiScore, "nl100"] +#' +#' @source \url{https://www.povertyindex.org} +#' +# +################################################################################ +"ppiKHM2015" + + +################################################################################ +# +#' Poverty Probability Index (PPI) lookup table for Cambodia for 2023 +#' +#' @format A data frame with 14 columns and 101 rows: +#' \describe{ +#' \item{\code{score}}{PPI score} +#' \item{\code{nl100}}{National poverty line (100\%)} +#' \item{\code{nl150}}{National poverty line (150\%)} +#' \item{\code{nl200}}{National poverty line (200\%)} +#' \item{\code{ppp550}}{Below $3.20 per day purchasing power parity (2011)} +#' \item{\code{ppp800}}{Below $3.20 per day purchasing power parity (2011)} +#' \item{\code{ppp1100}}{Below $11.00 per day purchasing power parity (2011)} +#' \item{\code{ppp1500}}{Below $15.00 per day purchasing power parity (2011)} +#' \item{\code{ppp2170}}{Below $21.70 per day purchasing power parity (2011)} +#' \item{\code{ppp685}}{Below $6.85 per day purchasing power parity (2017)} +#' \item{\code{percentile20}}{Below 20th percentile poverty line} +#' \item{\code{percentile40}}{Below 40th percentile poverty line} +#' \item{\code{percentile60}}{Below 60th percentile poverty line} +#' \item{\code{percentile80}}{Below 80th percentile poverty line} +#' } +#' +#' @examples +#' # Access Cambodia PPI table +#' ppiKHM2023 +#' +#' # Given a specific PPI score (from 0 - 100), get the row of poverty +#' # probabilities from PPI table it corresponds to +#' ppiScore <- 50 +#' ppiKHM2023[ppiKHM2023$score == ppiScore, ] +#' +#' # Use subset() function to get the row of poverty probabilities corresponding +#' # to specific PPI score +#' ppiScore <- 50 +#' subset(ppiKHM2023, score == ppiScore) +#' +#' # Given a specific PPI score (from 0 - 100), get a poverty probability +#' # based on a specific poverty definition. In this example, the national +#' # poverty line definition +#' ppiScore <- 50 +#' ppiKHM2023[ppiKHM2023$score == ppiScore, "nl100"] +#' +#' @source \url{https://www.povertyindex.org} +#' +# +################################################################################ +"ppiKHM2023" + diff --git a/R/00_ecuador.R b/R/00_ecuador.R new file mode 100644 index 00000000..46e8f802 --- /dev/null +++ b/R/00_ecuador.R @@ -0,0 +1,100 @@ +################################################################################ +# +#' Poverty Probability Index (PPI) lookup table for Ecuador +#' +#' @format A data frame with 11 columns and 101 rows: +#' \describe{ +#' \item{\code{score}}{PPI score} +#' \item{\code{nlFood}}{Food poverty line} +#' \item{\code{nl100}}{National poverty line (100\%)} +#' \item{\code{nl150}}{National poverty line (150\%)} +#' \item{\code{nl200}}{National poverty line (200\%)} +#' \item{\code{half100}}{Poorest half below 100\% national} +#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} +#' \item{\code{ppp200}}{Below $2.00 per day purchasing power parity (2005)} +#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} +#' \item{\code{ppp500}}{Below $5.00 per day purchasing power parity (2005)} +#' \item{\code{ppp844}}{Below $8.44 per day purchasing power parity (2005)} +#' } +#' +#' @examples +#' # Access Ecuador PPI table +#' ppiECU2015 +#' +#' # Given a specific PPI score (from 0 - 100), get the row of poverty +#' # probabilities from PPI table it corresponds to +#' ppiScore <- 50 +#' ppiECU2015[ppiECU2015$score == ppiScore, ] +#' +#' # Use subset() function to get the row of poverty probabilities corresponding +#' # to specific PPI score +#' ppiScore <- 50 +#' subset(ppiECU2015, score == ppiScore) +#' +#' # Given a specific PPI score (from 0 - 100), get a poverty probability +#' # based on a specific poverty definition. In this example, the national +#' # poverty line definition +#' ppiScore <- 50 +#' ppiECU2015[ppiECU2015$score == ppiScore, "nl100"] +#' +#' @source \url{https://www.povertyindex.org} +#' +# +################################################################################ +"ppiECU2015" + + +################################################################################ +# +#' Poverty Probability Index (PPI) lookup table for Ecuador for 2022 +#' +#' @format A data frame with 20 columns and 101 rows: +#' \describe{ +#' \item{\code{score}}{PPI score} +#' \item{\code{nl100}}{National poverty line (100\%)} +#' \item{\code{nl_extreme}}{National poverty line (extreme)} +#' \item{\code{nl150}}{National poverty line (150\%)} +#' \item{\code{nl200}}{National poverty line (200\%)} +#' \item{\code{ppp215}}{Below $2.15 per day purchasing power parity (2017)} +#' \item{\code{ppp365}}{Below $3.65 per day purchasing power parity (2017)} +#' \item{\code{ppp685}}{Below $6.85 per day purchasing power parity (2017)} +#' \item{\code{ppp100}}{Below $1.00 per day purchasing power parity (2011)} +#' \item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)} +#' \item{\code{ppp320}}{Below $3.20 per day purchasing power parity (2011)} +#' \item{\code{ppp550}}{Below $5.50 per day purchasing power parity (2011)} +#' \item{\code{ppp800}}{Below $8.00 per day purchasing power parity (2011)} +#' \item{\code{ppp1100}}{Below $11.00 per day purchasing power parity (2011)} +#' \item{\code{ppp1500}}{Below $15.00 per day purchasing power parity (2011)} +#' \item{\code{ppp2170}}{Below $21.70 per day purchasing power parity (2011)} +#' \item{\code{percentile20}}{Below 20th percentile poverty line} +#' \item{\code{percentile40}}{Below 40th percentile poverty line} +#' \item{\code{percentile60}}{Below 60th percentile poverty line} +#' \item{\code{percentile80}}{Below 80th percentile poverty line} +#' } +#' +#' @examples +#' # Access Ecuador PPI table +#' ppiECU2015 +#' +#' # Given a specific PPI score (from 0 - 100), get the row of poverty +#' # probabilities from PPI table it corresponds to +#' ppiScore <- 50 +#' ppiECU2015[ppiECU2015$score == ppiScore, ] +#' +#' # Use subset() function to get the row of poverty probabilities corresponding +#' # to specific PPI score +#' ppiScore <- 50 +#' subset(ppiECU2015, score == ppiScore) +#' +#' # Given a specific PPI score (from 0 - 100), get a poverty probability +#' # based on a specific poverty definition. In this example, the national +#' # poverty line definition +#' ppiScore <- 50 +#' ppiECU2015[ppiECU2015$score == ppiScore, "nl100"] +#' +#' @source \url{https://www.povertyindex.org} +#' +# +################################################################################ +"ppiECU2022" + diff --git a/R/00_el_salvador.R b/R/00_el_salvador.R new file mode 100644 index 00000000..c840e1c0 --- /dev/null +++ b/R/00_el_salvador.R @@ -0,0 +1,101 @@ +################################################################################ +# +#' Poverty Probability Index (PPI) lookup table for El Salvador +#' +#' @format A data frame with 9 columns and 101 rows: +#' \describe{ +#' \item{\code{score}}{PPI score} +#' \item{\code{nl100}}{National poverty line (100\%)} +#' \item{\code{nlFood}}{Food poverty line} +#' \item{\code{nl150}}{National poverty line (150\%)} +#' \item{\code{nl200}}{National poverty line (200\%)} +#' \item{\code{extreme}}{USAID extreme poverty} +#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} +#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} +#' \item{\code{ppp375}}{Below $3.75 per day purchasing power parity (2005)} +#' } +#' +#' @examples +#' # Access El Salvador PPI table +#' ppiSLV2010 +#' +#' # Given a specific PPI score (from 0 - 100), get the row of poverty +#' # probabilities from PPI table it corresponds to +#' ppiScore <- 50 +#' ppiSLV2010[ppiSLV2010$score == ppiScore, ] +#' +#' # Use subset() function to get the row of poverty probabilities corresponding +#' # to specific PPI score +#' ppiScore <- 50 +#' subset(ppiSLV2010, score == ppiScore) +#' +#' # Given a specific PPI score (from 0 - 100), get a poverty probability +#' # based on a specific poverty definition. In this example, the USAID +#' # extreme poverty definition +#' ppiScore <- 50 +#' ppiSLV2010[ppiSLV2010$score == ppiScore, "extreme"] +#' +#' @source \url{https://www.povertyindex.org} +#' +# +################################################################################ +"ppiSLV2010" + + + +################################################################################ +# +#' Poverty Probability Index (PPI) lookup table for El Salvador for 2021 +#' +#' @format A data frame with 21 columns and 101 rows: +#' \describe{ +#' \item{\code{score}}{PPI score} +#' \item{\code{nl100}}{National poverty line (100\%)} +#' \item{\code{nl_extreme}}{National poverty line (extreme)} +#' \item{\code{ppp215}}{Below $2.15 per day purchasing power parity (2017)} +#' \item{\code{ppp365}}{Below $3.65 per day purchasing power parity (2017)} +#' \item{\code{ppp685}}{Below $6.85 per day purchasing power parity (2017)} +#' \item{\code{ppp100}}{Below $1.00 per day purchasing power parity (2011)} +#' \item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)} +#' \item{\code{ppp320}}{Below $3.20 per day purchasing power parity (2011)} +#' \item{\code{ppp550}}{Below $5.50 per day purchasing power parity (2011)} +#' \item{\code{ppp800}}{Below $8.00 per day purchasing power parity (2011)} +#' \item{\code{ppp1100}}{Below $11.00 per day purchasing power parity (2011)} +#' \item{\code{ppp1500}}{Below $15.00 per day purchasing power parity (2011)} +#' \item{\code{ppp2170}}{Below $21.70 per day purchasing power parity (2011)} +#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} +#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} +#' \item{\code{ppp500}}{Below $5.00 per day purchasing power parity (2005)} +#' \item{\code{percentile20}}{Below 20th percentile poverty line} +#' \item{\code{percentile40}}{Below 40th percentile poverty line} +#' \item{\code{percentile60}}{Below 60th percentile poverty line} +#' \item{\code{percentile80}}{Below 80th percentile poverty line} +#' } +#' +#' @examples +#' # Access El Salvador PPI table +#' ppiSLV2021 +#' +#' # Given a specific PPI score (from 0 - 100), get the row of poverty +#' # probabilities from PPI table it corresponds to +#' ppiScore <- 50 +#' ppiSLV2021[ppiSLV2021$score == ppiScore, ] +#' +#' # Use subset() function to get the row of poverty probabilities corresponding +#' # to specific PPI score +#' ppiScore <- 50 +#' subset(ppiSLV2021, score == ppiScore) +#' +#' # Given a specific PPI score (from 0 - 100), get a poverty probability +#' # based on a specific poverty definition. In this example, the USAID +#' # extreme poverty definition +#' ppiScore <- 50 +#' ppiSLV2021[ppiSLV2021$score == ppiScore, "nl_extreme"] +#' +#' @source \url{https://www.povertyindex.org} +#' +# +################################################################################ +"ppiSLV2021" + + diff --git a/R/00_ethiopia.R b/R/00_ethiopia.R new file mode 100644 index 00000000..57804a79 --- /dev/null +++ b/R/00_ethiopia.R @@ -0,0 +1,109 @@ +################################################################################ +# +#' Poverty Probability Index (PPI) lookup table for Ethiopia +#' +#' @format A data frame with 21 columns and 101 rows: +#' \describe{ +#' \item{\code{score}}{PPI score} +#' \item{\code{nlFood}}{Food poverty line} +#' \item{\code{nl100}}{National poverty line (100\%)} +#' \item{\code{nl150}}{National poverty line (150\%)} +#' \item{\code{nl200}}{National poverty line (200\%)} +#' \item{\code{ppp100}}{Below $1.00 per day purchasing power parity (2005)} +#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} +#' \item{\code{ppp175}}{Below $1.75 per day purchasing power parity (2005)} +#' \item{\code{ppp200}}{Below $2.00 per day purchasing power parity (2005)} +#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} +#' \item{\code{ppp500}}{Below $5.00 per day purchasing power parity (2005)} +#' \item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)} +#' \item{\code{ppp310}}{Below $3.10 per day purchasing power parity (2011)} +#' \item{\code{ppp380}}{Below $3.80 per day purchasing power parity (2011)} +#' \item{\code{ppp400}}{Below $4.00 per day purchasing power parity (2011)} +#' \item{\code{half100}}{Poorest half below 100 national} +#' \item{\code{percentile20}}{Below 20th percentile poverty line} +#' \item{\code{percentile40}}{Below 40th percentile poverty line} +#' \item{\code{percentile50}}{Below 50th percentile poverty line} +#' \item{\code{percentile60}}{Below 60th percentile poverty line} +#' \item{\code{percentile80}}{Below 80th percentile poverty line} +#' } +#' +#' @examples +#' # Access Ethiopia PPI table +#' ppiETH2016 +#' +#' # Given a specific PPI score (from 0 - 100), get the row of poverty +#' # probabilities from PPI table it corresponds to +#' ppiScore <- 50 +#' ppiETH2016[ppiETH2016$score == ppiScore, ] +#' +#' # Use subset() function to get the row of poverty probabilities corresponding +#' # to specific PPI score +#' ppiScore <- 50 +#' subset(ppiETH2016, score == ppiScore) +#' +#' # Given a specific PPI score (from 0 - 100), get a poverty probability +#' # based on a specific poverty definition. In this example, the national +#' # poverty line definition +#' ppiScore <- 50 +#' ppiETH2016[ppiETH2016$score == ppiScore, "nl100"] +#' +#' @source \url{https://www.povertyindex.org} +#' +# +################################################################################ +"ppiETH2016" + + +################################################################################ +# +#' Poverty Probability Index (PPI) lookup table for Ethiopia for 2023 +#' +#' @format A data frame with 20 columns and 101 rows: +#' \describe{ +#' \item{\code{score}}{PPI score} +#' \item{\code{nl100}}{National poverty line (100\%)} +#' \item{\code{nl_extreme}}{National poverty line (extreme)} +#' \item{\code{nl150}}{National poverty line (150\%)} +#' \item{\code{nl200}}{National poverty line (200\%)} +#' \item{\code{ppp100}}{Below $1.00 per day purchasing power parity (2011)} +#' \item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)} +#' \item{\code{ppp320}}{Below $3.20 per day purchasing power parity (2011)} +#' \item{\code{ppp550}}{Below $5.50 per day purchasing power parity (2011)} +#' \item{\code{ppp800}}{Below $8.00 per day purchasing power parity (2011)} +#' \item{\code{ppp1100}}{Below $11.00 per day purchasing power parity (2011)} +#' \item{\code{ppp1500}}{Below $15.00 per day purchasing power parity (2011)} +#' \item{\code{ppp2170}}{Below $21.70 per day purchasing power parity (2011)} +#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} +#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} +#' \item{\code{ppp500}}{Below $5.00 per day purchasing power parity (2005)} +#' \item{\code{percentile20}}{Below 20th percentile poverty line} +#' \item{\code{percentile40}}{Below 40th percentile poverty line} +#' \item{\code{percentile60}}{Below 60th percentile poverty line} +#' \item{\code{percentile80}}{Below 80th percentile poverty line} +#' } +#' +#' @examples +#' # Access Ethiopia PPI table +#' ppiETH2023 +#' +#' # Given a specific PPI score (from 0 - 100), get the row of poverty +#' # probabilities from PPI table it corresponds to +#' ppiScore <- 50 +#' ppiETH2023[ppiETH2023$score == ppiScore, ] +#' +#' # Use subset() function to get the row of poverty probabilities corresponding +#' # to specific PPI score +#' ppiScore <- 50 +#' subset(ppiETH2023, score == ppiScore) +#' +#' # Given a specific PPI score (from 0 - 100), get a poverty probability +#' # based on a specific poverty definition. In this example, the national +#' # poverty line definition +#' ppiScore <- 50 +#' ppiETH2023[ppiETH2023$score == ppiScore, "nl100"] +#' +#' @source \url{https://www.povertyindex.org} +#' +# +################################################################################ +"ppiETH2023" diff --git a/R/00_guatemala.R b/R/00_guatemala.R new file mode 100644 index 00000000..3e875b3c --- /dev/null +++ b/R/00_guatemala.R @@ -0,0 +1,97 @@ +################################################################################ +# +#' Poverty Probability Index (PPI) lookup table for Guatemala +#' +#' @format A data frame with 17 columns and 101 rows: +#' \describe{ +#' \item{\code{score}}{PPI score} +#' \item{\code{nlFood}}{Food poverty line} +#' \item{\code{nl100}}{National poverty line (100\%)} +#' \item{\code{nl150}}{National poverty line (150\%)} +#' \item{\code{nl200}}{National poverty line (200\%)} +#' \item{\code{half100}}{Poorest half below 100\% national} +#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} +#' \item{\code{ppp200}}{Below $2.00 per day purchasing power parity (2005)} +#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} +#' \item{\code{ppp500}}{Below $5.00 per day purchasing power parity (2005)} +#' \item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)} +#' \item{\code{ppp310}}{Below $3.10 per day purchasing power parity (2011)} +#' \item{\code{percentile20}}{Below 20th percentile poverty line} +#' \item{\code{percentile40}}{Below 40th percentile poverty line} +#' \item{\code{percentile50}}{Below 50th percentile poverty line} +#' \item{\code{percentile60}}{Below 60th percentile poverty line} +#' \item{\code{percentile80}}{Below 80th percentile poverty line} +#' } +#' +#' @examples +#' # Access Guatemala PPI table +#' ppiGTM2016 +#' +#' # Given a specific PPI score (from 0 - 100), get the row of poverty +#' # probabilities from PPI table it corresponds to +#' ppiScore <- 50 +#' ppiGTM2016[ppiGTM2016$score == ppiScore, ] +#' +#' # Use subset() function to get the row of poverty probabilities corresponding +#' # to specific PPI score +#' ppiScore <- 50 +#' subset(ppiGTM2016, score == ppiScore) +#' +#' # Given a specific PPI score (from 0 - 100), get a poverty probability +#' # based on a specific poverty definition. In this example, the national +#' # poverty line definition +#' ppiScore <- 50 +#' ppiGTM2016[ppiGTM2016$score == ppiScore, "nl100"] +#' +#' @source \url{https://www.povertyindex.org} +#' +# +################################################################################ +"ppiGTM2016" + + +################################################################################ +# +#' Poverty Probability Index (PPI) lookup table for Guatemala for 2023 +#' +#' @format A data frame with 17 columns and 101 rows: +#' \describe{ +#' \item{\code{score}}{PPI score} +#' \item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)} +#' \item{\code{ppp320}}{Below $3.20 per day purchasing power parity (2011)} +#' \item{\code{ppp550}}{Below $5.50 per day purchasing power parity (2011)} +#' \item{\code{ppp215}}{Below $2.15 per day purchasing power parity (2017)} +#' \item{\code{ppp365}}{Below $3.65 per day purchasing power parity (2017)} +#' \item{\code{ppp685}}{Below $6.85 per day purchasing power parity (2017)} +#' \item{\code{percentile20}}{Below 20th percentile poverty line} +#' \item{\code{percentile40}}{Below 40th percentile poverty line} +#' \item{\code{percentile60}}{Below 60th percentile poverty line} +#' \item{\code{percentile80}}{Below 80th percentile poverty line} +#' } +#' +#' @examples +#' # Access Guatemala PPI table +#' ppiGTM2023 +#' +#' # Given a specific PPI score (from 0 - 100), get the row of poverty +#' # probabilities from PPI table it corresponds to +#' ppiScore <- 50 +#' ppiGTM2023[ppiGTM2023$score == ppiScore, ] +#' +#' # Use subset() function to get the row of poverty probabilities corresponding +#' # to specific PPI score +#' ppiScore <- 50 +#' subset(ppiGTM2023, score == ppiScore) +#' +#' # Given a specific PPI score (from 0 - 100), get a poverty probability +#' # based on a specific poverty definition. In this example, the national +#' # poverty line definition +#' ppiScore <- 50 +#' ppiGTM2023[ppiGTM2023$score == ppiScore, "ppp190"] +#' +#' @source \url{https://www.povertyindex.org} +#' +# +################################################################################ +"ppiGTM2023" + diff --git a/R/00_honduras.R b/R/00_honduras.R new file mode 100644 index 00000000..4e53b544 --- /dev/null +++ b/R/00_honduras.R @@ -0,0 +1,93 @@ +################################################################################ +# +#' Poverty Probability Index (PPI) lookup table for Honduras +#' +#' @format A data frame with 7 columns and 101 rows: +#' \describe{ +#' \item{\code{score}}{PPI score} +#' \item{\code{nl100}}{National poverty line (100\%)} +#' \item{\code{nlFood}}{Food poverty line} +#' \item{\code{extreme}}{USAID extreme poverty} +#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} +#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} +#' \item{\code{ppp375}}{Below $3.75 per day purchasing power parity (2005)} +#' } +#' +#' @examples +#' # Access Honduras PPI table +#' ppiHND2010 +#' +#' # Given a specific PPI score (from 0 - 100), get the row of poverty +#' # probabilities from PPI table it corresponds to +#' ppiScore <- 50 +#' ppiHND2010[ppiHND2010$score == ppiScore, ] +#' +#' # Use subset() function to get the row of poverty probabilities corresponding +#' # to specific PPI score +#' ppiScore <- 50 +#' subset(ppiHND2010, score == ppiScore) +#' +#' # Given a specific PPI score (from 0 - 100), get a poverty probability +#' # based on a specific poverty definition. In this example, the USAID +#' # extreme poverty definition +#' ppiScore <- 50 +#' ppiHND2010[ppiHND2010$score == ppiScore, "extreme"] +#' +#' @source \url{https://www.povertyindex.org} +#' +# +################################################################################ +"ppiHND2010" + + +################################################################################ +# +#' Poverty Probability Index (PPI) lookup table for Honduras for 2023 +#' +#' @format A data frame with 18 columns and 101 rows: +#' \describe{ +#' \item{\code{score}}{PPI score} +#' \item{\code{nl100}}{National poverty line (100\%)} +#' \item{\code{nl_extreme}}{National poverty line (extreme)} +#' \item{\code{ppp100}}{Below $1.00 per day purchasing power parity (2011)} +#' \item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)} +#' \item{\code{ppp320}}{Below $3.20 per day purchasing power parity (2011)} +#' \item{\code{ppp550}}{Below $5.50 per day purchasing power parity (2011)} +#' \item{\code{ppp800}}{Below $8.00 per day purchasing power parity (2011)} +#' \item{\code{ppp1100}}{Below $11.00 per day purchasing power parity (2011)} +#' \item{\code{ppp1500}}{Below $15.00 per day purchasing power parity (2011)} +#' \item{\code{ppp2170}}{Below $21.70 per day purchasing power parity (2011)} +#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} +#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} +#' \item{\code{ppp500}}{Below $5.00 per day purchasing power parity (2005)} +#' \item{\code{percentile20}}{Below 20th percentile poverty line} +#' \item{\code{percentile40}}{Below 40th percentile poverty line} +#' \item{\code{percentile60}}{Below 60th percentile poverty line} +#' \item{\code{percentile80}}{Below 80th percentile poverty line} +#' } +#' +#' @examples +#' # Access Honduras PPI table +#' ppiHND2023 +#' +#' # Given a specific PPI score (from 0 - 100), get the row of poverty +#' # probabilities from PPI table it corresponds to +#' ppiScore <- 50 +#' ppiHND2023[ppiHND2023$score == ppiScore, ] +#' +#' # Use subset() function to get the row of poverty probabilities corresponding +#' # to specific PPI score +#' ppiScore <- 50 +#' subset(ppiHND2023, score == ppiScore) +#' +#' # Given a specific PPI score (from 0 - 100), get a poverty probability +#' # based on a specific poverty definition. In this example, the USAID +#' # extreme poverty definition +#' ppiScore <- 50 +#' ppiHND2023[ppiHND2023$score == ppiScore, "nl_extreme"] +#' +#' @source \url{https://www.povertyindex.org} +#' +# +################################################################################ +"ppiHND2023" diff --git a/R/00_indonesia.R b/R/00_indonesia.R new file mode 100644 index 00000000..bc3e7cda --- /dev/null +++ b/R/00_indonesia.R @@ -0,0 +1,184 @@ +################################################################################ +# +#' Poverty Probability Index (PPI) lookup table for Indonesia using legacy +#' poverty definitions +#' +#' @format A data frame with 4 columns and 101 rows: +#' \describe{ +#' \item{\code{score}}{PPI score} +#' \item{\code{nl100}}{National poverty line (100\%)} +#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} +#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} +#' } +#' +#' @examples +#' # Access Indonesia PPI table +#' ppiIDN2012 +#' +#' # Given a specific PPI score (from 0 - 100), get the row of poverty +#' # probabilities from PPI table it corresponds to +#' ppiScore <- 50 +#' ppiIDN2012[ppiIDN2012$score == ppiScore, ] +#' +#' # Use subset() function to get the row of poverty probabilities corresponding +#' # to specific PPI score +#' ppiScore <- 50 +#' subset(ppiIDN2012, score == ppiScore) +#' +#' # Given a specific PPI score (from 0 - 100), get a poverty probability +#' # based on a specific poverty definition. In this example, the national +#' # poverty line definition +#' ppiScore <- 50 +#' ppiIDN2012[ppiIDN2012$score == ppiScore, "nl100"] +#' +#' @source \url{https://www.povertyindex.org} +#' +# +################################################################################ +"ppiIDN2012" + + +################################################################################ +# +#' Poverty Probability Index (PPI) lookup table for Indonesia using new +#' poverty definitions +#' +#' @format A data frame with 9 columns and 101 rows: +#' \describe{ +#' \item{\code{score}}{PPI score} +#' \item{\code{nl100}}{National poverty line (100\%)} +#' \item{\code{nl150}}{National poverty line (150\%)} +#' \item{\code{nl200}}{National poverty line (200\%)} +#' \item{\code{extreme}}{USAID extreme poverty} +#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} +#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} +#' \item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)} +#' \item{\code{ppp310}}{Below $3.10 per day purchasing power parity (2011)} +#' } +#' +#' @examples +#' # Access Indonesia PPI table +#' ppiIDN2012_a +#' +#' # Given a specific PPI score (from 0 - 100), get the row of poverty +#' # probabilities from PPI table it corresponds to +#' ppiScore <- 50 +#' ppiIDN2012_a[ppiIDN2012_a$score == ppiScore, ] +#' +#' # Use subset() function to get the row of poverty probabilities corresponding +#' # to specific PPI score +#' ppiScore <- 50 +#' subset(ppiIDN2012_a, score == ppiScore) +#' +#' # Given a specific PPI score (from 0 - 100), get a poverty probability +#' # based on a specific poverty definition. In this example, the USAID +#' # extreme poverty definition +#' ppiScore <- 50 +#' ppiIDN2012_a[ppiIDN2012_a$score == ppiScore, "nl100"] +#' +#' @source \url{https://www.povertyindex.org} +#' +# +################################################################################ +"ppiIDN2012_a" + + +################################################################################ +# +#' Poverty Probability Index (PPI) lookup table for Indonesia +#' +#' @format A data frame with 20 columns and 101 rows: +#' \describe{ +#' \item{\code{score}}{PPI score} +#' \item{\code{nl100}}{National poverty line (100\%)} +#' \item{\code{extreme}}{Extreme poverty line} +#' \item{\code{nl150}}{National poverty line (150\%)} +#' \item{\code{nl200}}{National poverty line (200\%)} +#' \item{\code{ppp100}}{Below $1.00 per day purchasing power parity (2011)} +#' \item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)} +#' \item{\code{ppp320}}{Below $3.20 per day purchasing power parity (2011)} +#' \item{\code{ppp550}}{Below $5.50 per day purchasing power parity (2011)} +#' \item{\code{ppp800}}{Below $8.00 per day purchasing power parity (2011)} +#' \item{\code{ppp1100}}{Below $11.00 per day purchasing power parity (2011)} +#' \item{\code{ppp1500}}{Below $15.00 per day purchasing power parity (2011)} +#' \item{\code{ppp2170}}{Below $21.70 per day purchasing power parity (2011)} +#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} +#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} +#' \item{\code{ppp500}}{Below $5.00 per day purchasing power parity (2005)} +#' \item{\code{percentile20}}{Below 20th percentile poverty line} +#' \item{\code{percentile40}}{Below 40th percentile poverty line} +#' \item{\code{percentile60}}{Below 50th percentile poverty line} +#' \item{\code{percentile80}}{Below 60th percentile poverty line} +#' } +#' +#' @examples +#' # Access Indonesia PPI table +#' ppiIDN2020 +#' +#' # Given a specific PPI score (from 0 - 100), get the row of poverty +#' # probabilities from PPI table it corresponds to +#' ppiScore <- 50 +#' ppiIDN2020[ppiIDN2020$score == ppiScore, ] +#' +#' # Use subset() function to get the row of poverty probabilities corresponding +#' # to specific PPI score +#' ppiScore <- 50 +#' subset(ppiIDN2020, score == ppiScore) +#' +#' # Given a specific PPI score (from 0 - 100), get a poverty probability +#' # based on a specific poverty definition. In this example, the USAID +#' # extreme poverty definition +#' ppiScore <- 50 +#' ppiIDN2020[ppiIDN2020$score == ppiScore, "nl100"] +#' +#' @source \url{https://www.povertyindex.org} +#' +# +################################################################################ +"ppiIDN2020" + + +################################################################################ +# +#' Poverty Probability Index (PPI) lookup table for Indonesia for 2023 +#' +#' @format A data frame with 10 columns and 101 rows: +#' \describe{ +#' \item{\code{score}}{PPI score} +#' \item{\code{nl100}}{National poverty line (100\%)} +#' \item{\code{ppp365}}{Below $3.65 per day purchasing power parity (2017)} +#' \item{\code{ppp685}}{Below $6.85 per day purchasing power parity (2017)} +#' \item{\code{ppp320}}{Below $3.20 per day purchasing power parity (2011)} +#' \item{\code{ppp550}}{Below $5.50 per day purchasing power parity (2011)} +#' \item{\code{percentile20}}{Below 20th percentile poverty line} +#' \item{\code{percentile40}}{Below 40th percentile poverty line} +#' \item{\code{percentile60}}{Below 50th percentile poverty line} +#' \item{\code{percentile80}}{Below 60th percentile poverty line} +#' } +#' +#' @examples +#' # Access Indonesia PPI table +#' ppiIDN2023 +#' +#' # Given a specific PPI score (from 0 - 100), get the row of poverty +#' # probabilities from PPI table it corresponds to +#' ppiScore <- 50 +#' ppiIDN2023[ppiIDN2023$score == ppiScore, ] +#' +#' # Use subset() function to get the row of poverty probabilities corresponding +#' # to specific PPI score +#' ppiScore <- 50 +#' subset(ppiIDN2023, score == ppiScore) +#' +#' # Given a specific PPI score (from 0 - 100), get a poverty probability +#' # based on a specific poverty definition. In this example, the USAID +#' # extreme poverty definition +#' ppiScore <- 50 +#' ppiIDN2023[ppiIDN2023$score == ppiScore, "nl100"] +#' +#' @source \url{https://www.povertyindex.org} +#' +# +################################################################################ +"ppiIDN2023" + diff --git a/R/00_malawi.R b/R/00_malawi.R new file mode 100644 index 00000000..c87ab189 --- /dev/null +++ b/R/00_malawi.R @@ -0,0 +1,235 @@ +################################################################################ +# +#' Poverty Probability Index (PPI) lookup table for Malawi using government +#' poverty definitions +#' +#' @format A data frame with 14 columns and 101 rows: +#' \describe{ +#' \item{\code{score}}{PPI score} +#' \item{\code{nlFood}}{Food poverty line} +#' \item{\code{nl100}}{National poverty line (100\%)} +#' \item{\code{nl150}}{National poverty line (150\%)} +#' \item{\code{nl200}}{National poverty line (200\%)} +#' \item{\code{half100}}{Poorest half below 100\% national} +#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} +#' \item{\code{ppp200}}{Below $2.00 per day purchasing power parity (2005)} +#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} +#' \item{\code{ppp500}}{Below $5.00 per day purchasing power parity (2005)} +#' \item{\code{ppp844}}{Below $8.44 per day purchasing power parity (2005)} +#' \item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)} +#' \item{\code{ppp310}}{Below $3.10 per day purchasing power parity (2011)} +#' \item{\code{ppp1000}}{Below $10.00 per day purchasing power parity (2011)} +#' } +#' +#' @examples +#' # Access Malawi PPI table +#' ppiMWI2015_gov +#' +#' # Given a specific PPI score (from 0 - 100), get the row of poverty +#' # probabilities from PPI table it corresponds to +#' ppiScore <- 50 +#' ppiMWI2015_gov[ppiMWI2015_gov$score == ppiScore, ] +#' +#' # Use subset() function to get the row of poverty probabilities corresponding +#' # to specific PPI score +#' ppiScore <- 50 +#' subset(ppiMWI2015_gov, score == ppiScore) +#' +#' # Given a specific PPI score (from 0 - 100), get a poverty probability +#' # based on a specific poverty definition. In this example, the national +#' # poverty line definition +#' ppiScore <- 50 +#' ppiMWI2015_gov[ppiMWI2015_gov$score == ppiScore, "nl100"] +#' +#' @source \url{https://www.povertyindex.org} +#' +# +################################################################################ +"ppiMWI2015_gov" + + +################################################################################ +# +#' Poverty Probability Index (PPI) lookup table for Malawi using legacy +#' poverty definitions +#' +#' @format A data frame with 3 columns and 101 rows: +#' \describe{ +#' \item{\code{score}}{PPI score} +#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} +#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} +#' } +#' +#' @examples +#' # Access Malawi PPI table +#' ppiMWI2015 +#' +#' # Given a specific PPI score (from 0 - 100), get the row of poverty +#' # probabilities from PPI table it corresponds to +#' ppiScore <- 50 +#' ppiMWI2015[ppiMWI2015$score == ppiScore, ] +#' +#' # Use subset() function to get the row of poverty probabilities corresponding +#' # to specific PPI score +#' ppiScore <- 50 +#' subset(ppiMWI2015, score == ppiScore) +#' +#' # Given a specific PPI score (from 0 - 100), get a poverty probability +#' # based on a specific poverty definition. In this example, below $1.25 +#' # purchasing power parity (2005) +#' ppiScore <- 50 +#' ppiMWI2015[ppiMWI2015$score == ppiScore, "ppp125"] +#' +#' @source \url{https://www.povertyindex.org} +#' +# +################################################################################ +"ppiMWI2015" + + +################################################################################ +# +#' Poverty Probability Index (PPI) lookup table for Malawi using PBM poverty +#' definitions +#' +#' @format A data frame with 13 columns and 101 rows: +#' \describe{ +#' \item{\code{score}}{PPI score} +#' \item{\code{nlFood}}{Food poverty line} +#' \item{\code{nl100}}{National poverty line (100\%)} +#' \item{\code{nl150}}{National poverty line (150\%)} +#' \item{\code{nl200}}{National poverty line (200\%)} +#' \item{\code{half100}}{Poorest half below 100\% national} +#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} +#' \item{\code{ppp200}}{Below $2.00 per day purchasing power parity (2005)} +#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} +#' \item{\code{ppp500}}{Below $5.00 per day purchasing power parity (2005)} +#' \item{\code{ppp844}}{Below $8.44 per day purchasing power parity (2005)} +#' \item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)} +#' \item{\code{ppp310}}{Below $3.10 per day purchasing power parity (2011)} +#' } +#' +#' @examples +#' # Access Malawi PPI table +#' ppiMWI2015_pbm +#' +#' # Given a specific PPI score (from 0 - 100), get the row of poverty +#' # probabilities from PPI table it corresponds to +#' ppiScore <- 50 +#' ppiMWI2015_pbm[ppiMWI2015_pbm$score == ppiScore, ] +#' +#' # Use subset() function to get the row of poverty probabilities corresponding +#' # to specific PPI score +#' ppiScore <- 50 +#' subset(ppiMWI2015_pbm, score == ppiScore) +#' +#' # Given a specific PPI score (from 0 - 100), get a poverty probability +#' # based on a specific poverty definition. In this example, the national +#' # poverty line definition +#' ppiScore <- 50 +#' ppiMWI2015_pbm[ppiMWI2015_pbm$score == ppiScore, "nl100"] +#' +#' @source \url{https://www.povertyindex.org} +#' +# +################################################################################ +"ppiMWI2015_pbm" + + +################################################################################ +# +#' Poverty Probability Index (PPI) lookup table for Malawi +#' +#' @format A data frame with 16 columns and 101 rows: +#' \describe{ +#' \item{\code{score}}{PPI score} +#' \item{\code{nl100}}{National poverty line (100\%)} +#' \item{\code{extreme}}{Extreme poverty line} +#' \item{\code{nl150}}{National poverty line (150\%)} +#' \item{\code{nl200}}{National poverty line (200\%)} +#' \item{\code{ppp100}}{Below $1.00 per day purchasing power parity (2011)} +#' \item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)} +#' \item{\code{ppp320}}{Below $3.20 per day purchasing power parity (2011)} +#' \item{\code{ppp550}}{Below $5.50 per day purchasing power parity (2011)} +#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} +#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} +#' \item{\code{ppp500}}{Below $5.00 per day purchasing power parity (2005)} +#' \item{\code{percentile20}}{Below 20th percentile poverty line} +#' \item{\code{percentile40}}{Below 40th percentile poverty line} +#' \item{\code{percentile60}}{Below 50th percentile poverty line} +#' \item{\code{percentile80}}{Below 60th percentile poverty line} +#' } +#' +#' @examples +#' # Access Malawi PPI table +#' ppiMWI2020 +#' +#' # Given a specific PPI score (from 0 - 100), get the row of poverty +#' # probabilities from PPI table it corresponds to +#' ppiScore <- 50 +#' ppiMWI2020[ppiMWI2020$score == ppiScore, ] +#' +#' # Use subset() function to get the row of poverty probabilities corresponding +#' # to specific PPI score +#' ppiScore <- 50 +#' subset(ppiMWI2020, score == ppiScore) +#' +#' # Given a specific PPI score (from 0 - 100), get a poverty probability +#' # based on a specific poverty definition. In this example, the USAID +#' # extreme poverty definition +#' ppiScore <- 50 +#' ppiMWI2020[ppiMWI2020$score == ppiScore, "nl100"] +#' +#' @source \url{https://www.povertyindex.org} +#' +# +################################################################################ +"ppiMWI2020" + + +################################################################################ +# +#' Poverty Probability Index (PPI) lookup table for Malawi for 2023 +#' +#' @format A data frame with 13 columns and 101 rows: +#' \describe{ +#' \item{\code{score}}{PPI score} +#' \item{\code{nl100}}{National poverty line (100\%)} +#' \item{\code{food}}{Food poverty line} +#' \item{\code{ppp215}}{Below $2.15 per day purchasing power parity (2017)} +#' \item{\code{ppp365}}{Below $3.65 per day purchasing power parity (2017)} +#' \item{\code{ppp685}}{Below $6.85 per day purchasing power parity (2017)} +#' \item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)} +#' \item{\code{ppp320}}{Below $3.20 per day purchasing power parity (2011)} +#' \item{\code{ppp550}}{Below $5.50 per day purchasing power parity (2011)} +#' \item{\code{percentile20}}{Below 20th percentile poverty line} +#' \item{\code{percentile40}}{Below 40th percentile poverty line} +#' \item{\code{percentile60}}{Below 50th percentile poverty line} +#' \item{\code{percentile80}}{Below 60th percentile poverty line} +#' } +#' +#' @examples +#' # Access Malawi PPI table +#' ppiMWI2023 +#' +#' # Given a specific PPI score (from 0 - 100), get the row of poverty +#' # probabilities from PPI table it corresponds to +#' ppiScore <- 50 +#' ppiMWI2023[ppiMWI2023$score == ppiScore, ] +#' +#' # Use subset() function to get the row of poverty probabilities corresponding +#' # to specific PPI score +#' ppiScore <- 50 +#' subset(ppiMWI2023, score == ppiScore) +#' +#' # Given a specific PPI score (from 0 - 100), get a poverty probability +#' # based on a specific poverty definition. In this example, the USAID +#' # extreme poverty definition +#' ppiScore <- 50 +#' ppiMWI2023[ppiMWI2023$score == ppiScore, "nl100"] +#' +#' @source \url{https://www.povertyindex.org} +#' +# +################################################################################ +"ppiMWI2023" diff --git a/R/00_papua_new_guinea.R b/R/00_papua_new_guinea.R new file mode 100644 index 00000000..db1173f0 --- /dev/null +++ b/R/00_papua_new_guinea.R @@ -0,0 +1,43 @@ +################################################################################ +# +#' Poverty Probability Index (PPI) lookup table for Papua New Guinea 2023 +#' +#' @format A data frame with 9 columns and 101 rows: +#' \describe{ +#' \item{\code{score}}{PPI score} +#' \item{\code{percentile20_wi}}{Below 20th percentile wealth index} +#' \item{\code{percentile40_wi}}{Below 40th percentile wealth index} +#' \item{\code{percentile60_wi}}{Below 60th percentile wealth index} +#' \item{\code{percentile80_wi}}{Below 80th percentile wealth index} +#' \item{\code{percentile20_wi_ur}}{Below 20th percentile wealth index urban/rural} +#' \item{\code{percentile40_wi_ur}}{Below 40th percentile wealth index urban/rural} +#' \item{\code{percentile60_wi_ur}}{Below 60th percentile wealth index urban/rural} +#' \item{\code{percentile80_wi_ur}}{Below 80th percentile wealth index urban/rural} +#' } +#' +#' @examples +#' # Access Papua New Guinea PPI table +#' ppiPNG2023 +#' +#' # Given a specific PPI score (from 0 - 100), get the row of poverty +#' # probabilities from PPI table it corresponds to +#' ppiScore <- 50 +#' ppiPNG2023[ppiPNG2023$score == ppiScore, ] +#' +#' # Use subset() function to get the row of poverty probabilities corresponding +#' # to specific PPI score +#' ppiScore <- 50 +#' subset(ppiPNG2023, score == ppiScore) +#' +#' # Given a specific PPI score (from 0 - 100), get a poverty probability +#' # based on a specific poverty definition. In this example, the USAID +#' # extreme poverty definition +#' ppiScore <- 50 +#' ppiPNG2023[ppiPNG2023$score == ppiScore, "percentile20_wi"] +#' +#' @source \url{https://www.povertyindex.org} +#' +# +################################################################################ +"ppiPNG2023" + diff --git a/R/00_philippines.R b/R/00_philippines.R new file mode 100644 index 00000000..1b81a0d6 --- /dev/null +++ b/R/00_philippines.R @@ -0,0 +1,147 @@ +################################################################################ +# +#' Poverty Probability Index (PPI) lookup table for Philippines using legacy +#' poverty definitions +#' +#' @format A data frame with 6 columns and 101 rows: +#' \describe{ +#' \item{\code{score}}{PPI score} +#' \item{\code{nl100}}{National poverty line (100\%)} +#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} +#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} +#' \item{\code{ppp500}}{Below $5.00 per day purchasing power parity (2005)} +#' \item{\code{ppp432}}{Below $4.32 per day purchasing power parity (1993)} +#' } +#' +#' @examples +#' # Access Philippines PPI table +#' ppiPHL2014 +#' +#' # Given a specific PPI score (from 0 - 100), get the row of poverty +#' # probabilities from PPI table it corresponds to +#' ppiScore <- 50 +#' ppiPHL2014[ppiPHL2014$score == ppiScore, ] +#' +#' # Use subset() function to get the row of poverty probabilities corresponding +#' # to specific PPI score +#' ppiScore <- 50 +#' subset(ppiPHL2014, score == ppiScore) +#' +#' # Given a specific PPI score (from 0 - 100), get a poverty probability +#' # based on a specific poverty definition. In this example, the national +#' # poverty line definition +#' ppiScore <- 50 +#' ppiPHL2014[ppiPHL2014$score == ppiScore, "nl100"] +#' +#' @source \url{https://www.povertyindex.org} +#' +# +################################################################################ +"ppiPHL2014" + + +################################################################################ +# +#' Poverty Probability Index (PPI) lookup table for Philippines using new +#' poverty definitions +#' +#' @format A data frame with 11 columns and 101 rows: +#' \describe{ +#' \item{\code{score}}{PPI score} +#' \item{\code{nl100}}{National poverty line (100\%)} +#' \item{\code{nl150}}{National poverty line (150\%)} +#' \item{\code{nl200}}{National poverty line (200\%)} +#' \item{\code{median}}{Poorest half below 100\% national} +#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} +#' \item{\code{ppp200}}{Below $2.00 per day purchasing power parity (2005)} +#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} +#' \item{\code{ppp500}}{Below $5.00 per day purchasing power parity (2005)} +#' \item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)} +#' \item{\code{ppp310}}{Below $3.10 per day purchasing power parity (2011)} +#' } +#' +#' @examples +#' # Access Philippines PPI table +#' ppiPHL2014_a +#' +#' # Given a specific PPI score (from 0 - 100), get the row of poverty +#' # probabilities from PPI table it corresponds to +#' ppiScore <- 50 +#' ppiPHL2014_a[ppiPHL2014_a$score == ppiScore, ] +#' +#' # Use subset() function to get the row of poverty probabilities corresponding +#' # to specific PPI score +#' ppiScore <- 50 +#' subset(ppiPHL2014_a, score == ppiScore) +#' +#' # Given a specific PPI score (from 0 - 100), get a poverty probability +#' # based on a specific poverty definition. In this example, the national +#' # poverty line definition +#' ppiScore <- 50 +#' ppiPHL2014_a[ppiPHL2014_a$score == ppiScore, "nl100"] +#' +#' @source \url{https://www.povertyindex.org} +#' +# +################################################################################ +"ppiPHL2014_a" + + +################################################################################ +# +#' Poverty Probability Index (PPI) lookup table for Philippines +#' +#' @format A data frame with 18 columns and 101 rows: +#' \describe{ +#' \item{\code{score}}{PPI score} +#' \item{\code{nl100}}{National poverty line (100\%)} +#' \item{\code{food}}{Food poverty line} +#' \item{\code{nl150}}{National poverty line (150\%)} +#' \item{\code{nl200}}{National poverty line (200\%)} +#' \item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)} +#' \item{\code{ppp320}}{Below $3.20 per day purchasing power parity (2011)} +#' \item{\code{ppp550}}{Below $5.50 per day purchasing power parity (2011)} +#' \item{\code{ppp800}}{Below $8.00 per day purchasing power parity (2011)} +#' \item{\code{ppp1100}}{Below $11.00 per day purchasing power parity (2011)} +#' \item{\code{ppp1500}}{Below $15.00 per day purchasing power parity (2011)} +#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} +#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} +#' \item{\code{ppp500}}{Below $5.00 per day purchasing power parity (2005)} +#' \item{\code{percentile20}}{Below 20th percentile poverty line} +#' \item{\code{percentile40}}{Below 40th percentile poverty line} +#' \item{\code{percentile60}}{Below 60th percentile poverty line} +#' \item{\code{percentile80}}{Below 80th percentile poverty line} +#' } +#' @source \url{https://www.povertyindex.org} +#' +# +################################################################################ +"ppiPHL2018" + + +################################################################################ +# +#' Poverty Probability Index (PPI) lookup table for Philippines for 2023 +#' +#' @format A data frame with 13 columns and 101 rows: +#' \describe{ +#' \item{\code{score}}{PPI score} +#' \item{\code{nl100}}{National poverty line (100\%)} +#' \item{\code{food}}{Food poverty line} +#' \item{\code{ppp215}}{Below $2.15 per day purchasing power parity (2017)} +#' \item{\code{ppp365}}{Below $3.65 per day purchasing power parity (2017)} +#' \item{\code{ppp685}}{Below $6.85 per day purchasing power parity (2017)} +#' \item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)} +#' \item{\code{ppp320}}{Below $3.20 per day purchasing power parity (2011)} +#' \item{\code{ppp550}}{Below $5.50 per day purchasing power parity (2011)} +#' \item{\code{percentile20}}{Below 20th percentile poverty line} +#' \item{\code{percentile40}}{Below 40th percentile poverty line} +#' \item{\code{percentile60}}{Below 60th percentile poverty line} +#' \item{\code{percentile80}}{Below 80th percentile poverty line} +#' } +#' @source \url{https://www.povertyindex.org} +#' +# +################################################################################ +"ppiPHL2023" + diff --git a/R/00_south_africa.R b/R/00_south_africa.R new file mode 100644 index 00000000..56e1b814 --- /dev/null +++ b/R/00_south_africa.R @@ -0,0 +1,82 @@ +################################################################################ +# +#' Poverty Probability Index (PPI) lookup table for South Africa +#' +#' @format A data frame with 8 columns and 101 rows: +#' \describe{ +#' \item{\code{score}}{PPI score} +#' \item{\code{nl100}}{National poverty line (100\%)} +#' \item{\code{nlFood}}{Food poverty line} +#' \item{\code{extreme}}{USAID extreme poverty} +#' \item{\code{nu100}}{National upper poverty line (100\%)} +#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} +#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} +#' \item{\code{ppp400}}{Below $4.00 per day purchasing power parity (2005)} +#' } +#' +#' @examples +#' # Access South Africa PPI table +#' ppiZAF2009 +#' +#' # Given a specific PPI score (from 0 - 100), get the row of poverty +#' # probabilities from PPI table it corresponds to +#' ppiScore <- 50 +#' ppiZAF2009[ppiZAF2009$score == ppiScore, ] +#' +#' # Use subset() function to get the row of poverty probabilities corresponding +#' # to specific PPI score +#' ppiScore <- 50 +#' subset(ppiZAF2009, score == ppiScore) +#' +#' # Given a specific PPI score (from 0 - 100), get a poverty probability +#' # based on a specific poverty definition. In this example, the national +#' # poverty line definition +#' ppiScore <- 50 +#' ppiZAF2009[ppiZAF2009$score == ppiScore, "nl100"] +#' +#' @source \url{https://www.povertyindex.org} +#' +# +################################################################################ +"ppiZAF2009" + + +################################################################################ +# +#' Poverty Probability Index (PPI) lookup table for South Africa for 2023 +#' +#' @format A data frame with 6 columns and 101 rows: +#' \describe{ +#' \item{\code{score}}{PPI score} +#' \item{\code{wealth_index}}{Wealth index poverty line} +#' \item{\code{percentile20}}{Below 20th percentile poverty line} +#' \item{\code{percentile40}}{Below 40th percentile poverty line} +#' \item{\code{percentile60}}{Below 60th percentile poverty line} +#' \item{\code{percentile80}}{Below 80th percentile poverty line} +#' } +#' +#' @examples +#' # Access South Africa PPI table +#' ppiZAF2023 +#' +#' # Given a specific PPI score (from 0 - 100), get the row of poverty +#' # probabilities from PPI table it corresponds to +#' ppiScore <- 50 +#' ppiZAF2023[ppiZAF2023$score == ppiScore, ] +#' +#' # Use subset() function to get the row of poverty probabilities corresponding +#' # to specific PPI score +#' ppiScore <- 50 +#' subset(ppiZAF2023, score == ppiScore) +#' +#' # Given a specific PPI score (from 0 - 100), get a poverty probability +#' # based on a specific poverty definition. In this example, the national +#' # poverty line definition +#' ppiScore <- 50 +#' ppiZAF2023[ppiZAF2023$score == ppiScore, "wealth_index"] +#' +#' @source \url{https://www.povertyindex.org} +#' +# +################################################################################ +"ppiZAF2023" diff --git a/R/00_togo.R b/R/00_togo.R new file mode 100644 index 00000000..9760ca5e --- /dev/null +++ b/R/00_togo.R @@ -0,0 +1,56 @@ +################################################################################ +# +#' Poverty Probability Index (PPI) lookup table for Togo +#' +#' @format A data frame with 15 columns and 101 rows: +#' \describe{ +#' \item{\code{score}}{PPI score} +#' \item{\code{nl100}}{National poverty line (100\%)} +#' \item{\code{nl150}}{National poverty line (150\%)} +#' \item{\code{nl200}}{National poverty line (200\%)} +#' \item{\code{ppp100}}{Below $1.00 per day purchasing power parity (2011)} +#' \item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)} +#' \item{\code{ppp320}}{Below $3.20 per day purchasing power parity (2011)} +#' \item{\code{ppp550}}{Below $5.50 per day purchasing power parity (2011)} +#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} +#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} +#' \item{\code{ppp500}}{Below $5.00 per day purchasing power parity (2005)} +#' \item{\code{percentile20}}{Below 20th percentile poverty line} +#' \item{\code{percentile40}}{Below 40th percentile poverty line} +#' \item{\code{percentile60}}{Below 60th percentile poverty line} +#' \item{\code{percentile80}}{Below 80th percentile poverty line} +#' } +#' @source \url{https://www.povertyindex.org} +#' +# +################################################################################ +"ppiTGO2018" + + +################################################################################ +# +#' Poverty Probability Index (PPI) lookup table for Togo for 2023 +#' +#' @format A data frame with 14 columns and 101 rows: +#' \describe{ +#' \item{\code{score}}{PPI score} +#' \item{\code{nl100}}{National poverty line (100\%)} +#' \item{\code{nl150}}{National poverty line (150\%)} +#' \item{\code{nl200}}{National poverty line (200\%)} +#' \item{\code{ppp215}}{Below $2.15 per day purchasing power parity (2017)} +#' \item{\code{ppp365}}{Below $3.65 per day purchasing power parity (2017)} +#' \item{\code{ppp685}}{Below $6.85 per day purchasing power parity (2017)} +#' \item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)} +#' \item{\code{ppp320}}{Below $3.20 per day purchasing power parity (2011)} +#' \item{\code{ppp550}}{Below $5.50 per day purchasing power parity (2011)} +#' \item{\code{percentile20}}{Below 20th percentile poverty line} +#' \item{\code{percentile40}}{Below 40th percentile poverty line} +#' \item{\code{percentile60}}{Below 60th percentile poverty line} +#' \item{\code{percentile80}}{Below 80th percentile poverty line} +#' } +#' @source \url{https://www.povertyindex.org} +#' +# +################################################################################ +"ppiTGO2023" + diff --git a/R/00_vietnam.R b/R/00_vietnam.R new file mode 100644 index 00000000..5f040ce3 --- /dev/null +++ b/R/00_vietnam.R @@ -0,0 +1,81 @@ +################################################################################ +# +#' Poverty Probability Index (PPI) lookup table for Vietnam +#' +#' @format A data frame with 8 columns and 101 rows: +#' \describe{ +#' \item{\code{score}}{PPI score} +#' \item{\code{nl100}}{National poverty line (100\%)} +#' \item{\code{nlFood}}{Food poverty line} +#' \item{\code{extreme}}{USAID extreme poverty line} +#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} +#' \item{\code{ppp175}}{Below $1.75 per day purchasing power parity (2005)} +#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} +#' \item{\code{molisa}}{MOLISA poverty line} +#' } +#' +#' @examples +#' # Access Vietnam PPI table +#' ppiVNM2009 +#' +#' # Given a specific PPI score (from 0 - 100), get the row of poverty +#' # probabilities from PPI table it corresponds to +#' ppiScore <- 50 +#' ppiVNM2009[ppiVNM2009$score == ppiScore, ] +#' +#' # Use subset() function to get the row of poverty probabilities corresponding +#' # to specific PPI score +#' ppiScore <- 50 +#' subset(ppiVNM2009, score == ppiScore) +#' +#' # Given a specific PPI score (from 0 - 100), get a poverty probability +#' # based on a specific poverty definition. In this example, the national +#' # poverty line definition +#' ppiScore <- 50 +#' ppiVNM2009[ppiVNM2009$score == ppiScore, "nl100"] +#' +#' @source \url{https://www.povertyindex.org} +#' +# +################################################################################ +"ppiVNM2009" + + +################################################################################ +# +#' Poverty Probability Index (PPI) lookup table for Vietnam for 2023 +#' +#' @format A data frame with 8 columns and 101 rows: +#' \describe{ +#' \item{\code{score}}{PPI score} +#' \item{\code{percentile20}}{Below 20th percentile poverty line} +#' \item{\code{percentile40}}{Below 40th percentile poverty line} +#' \item{\code{percentile60}}{Below 60th percentile poverty line} +#' \item{\code{percentile80}}{Below 80th percentile poverty line} +#' } +#' +#' @examples +#' # Access Vietnam PPI table +#' ppiVNM2023 +#' +#' # Given a specific PPI score (from 0 - 100), get the row of poverty +#' # probabilities from PPI table it corresponds to +#' ppiScore <- 50 +#' ppiVNM2023[ppiVNM2023$score == ppiScore, ] +#' +#' # Use subset() function to get the row of poverty probabilities corresponding +#' # to specific PPI score +#' ppiScore <- 50 +#' subset(ppiVNM2023, score == ppiScore) +#' +#' # Given a specific PPI score (from 0 - 100), get a poverty probability +#' # based on a specific poverty definition. In this example, the national +#' # poverty line definition +#' ppiScore <- 50 +#' ppiVNM2023[ppiVNM2023$score == ppiScore, "percentile20"] +#' +#' @source \url{https://www.povertyindex.org} +#' +# +################################################################################ +"ppiVNM2023" diff --git a/R/ppitables.R b/R/01_ppitables.R similarity index 100% rename from R/ppitables.R rename to R/01_ppitables.R diff --git a/R/find_table.R b/R/02_find_table.R similarity index 95% rename from R/find_table.R rename to R/02_find_table.R index 8134e7d2..62a68ede 100644 --- a/R/find_table.R +++ b/R/02_find_table.R @@ -1,5 +1,4 @@ -################################################################################ -# +#' #' Search for PPI table by specifying region, country and/or calculation type. #' #' @param region Region of the world to search PPI table from. Default is @@ -26,8 +25,6 @@ #' #' @export #' -# -################################################################################ find_table <- function(region = steer$region, country = steer$country[steer$region %in% region], diff --git a/R/get_table.R b/R/03_get_table.R similarity index 94% rename from R/get_table.R rename to R/03_get_table.R index 03a9c0ae..1d2554a5 100644 --- a/R/get_table.R +++ b/R/03_get_table.R @@ -1,5 +1,4 @@ -################################################################################ -# +#' #' Get PPI table/s based on a specified PPI table/s search output #' #' @param region Region of the world to search PPI table from. Default is @@ -26,8 +25,6 @@ #' #' @export #' -# -################################################################################ get_table <- function(region = steer$region, country = steer$country[steer$region %in% region], diff --git a/R/data.R b/R/04_data.R similarity index 71% rename from R/data.R rename to R/04_data.R index ed63717e..785452cd 100644 --- a/R/data.R +++ b/R/04_data.R @@ -130,93 +130,6 @@ "ppiBGD2013" -################################################################################ -# -#' Poverty Probability Index (PPI) lookup table for Bolivia -#' -#' @format A data frame with 10 columns and 101 rows: -#' \describe{ -#' \item{\code{score}}{PPI score} -#' \item{\code{nl100}}{Food poverty line} -#' \item{\code{nl150}}{National poverty line (100\%)} -#' \item{\code{nl200}}{National poverty line (150\%)} -#' \item{\code{half100}}{National poverty line (200\%)} -#' \item{\code{ppp125}}{Poorest half below 100\% national} -#' \item{\code{ppp200}}{Below $1.25 per day purchasing power parity (2005)} -#' \item{\code{ppp250}}{Below $2.00 per day purchasing power parity (2005)} -#' \item{\code{ppp500}}{Below $2.50 per day purchasing power parity (2005)} -#' \item{\code{ppp844}}{Below $5.00 per day purchasing power parity (2005)} -#' } -#' -#' @examples -#' # Access Bolivia PPI table -#' ppiBOL2015 -#' -#' # Given a specific PPI score (from 0 - 100), get the row of poverty -#' # probabilities from PPI table it corresponds to -#' ppiScore <- 50 -#' ppiBOL2015[ppiBOL2015$score == ppiScore, ] -#' -#' # Use subset() function to get the row of poverty probabilities corresponding -#' # to specific PPI score -#' ppiScore <- 50 -#' subset(ppiBOL2015, score == ppiScore) -#' -#' # Given a specific PPI score (from 0 - 100), get a poverty probability -#' # based on a specific poverty definition. In this example, the food -#' # poverty line definition -#' ppiScore <- 50 -#' ppiBOL2015[ppiBOL2015$score == ppiScore, "nlFood"] -#' -#' @source \url{https://www.povertyindex.org} -#' -# -################################################################################ -"ppiBOL2015" - - -################################################################################ -# -#' Poverty Probability Index (PPI) lookup table for Benin -#' -#' @format A data frame with 7 columns and 101 rows: -#' \describe{ -#' \item{\code{score}}{PPI score} -#' \item{\code{nl100}}{National poverty line (100\%)} -#' \item{\code{nl150}}{National poverty line (150\%)} -#' \item{\code{nl200}}{National poverty line (200\%)} -#' \item{\code{extreme}}{USAID extreme poverty} -#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} -#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} -#' } -#' -#' @examples -#' # Access Benin PPI table -#' ppiBEN2012 -#' -#' # Given a specific PPI score (from 0 - 100), get the row of poverty -#' # probabilities from PPI table it corresponds to -#' ppiScore <- 50 -#' ppiBEN2012[ppiBEN2012$score == ppiScore, ] -#' -#' # Use subset() function to get the row of poverty probabilities corresponding -#' # to specific PPI score -#' ppiScore <- 50 -#' subset(ppiBEN2012, score == ppiScore) -#' -#' # Given a specific PPI score (from 0 - 100), get a poverty probability -#' # based on a specific poverty definition. In this example, the USAID -#' # extreme poverty definition -#' ppiScore <- 50 -#' ppiBEN2012[ppiBEN2012$score == ppiScore, "extreme"] -#' -#' @source \url{https://www.povertyindex.org} -#' -# -################################################################################ -"ppiBEN2012" - - ################################################################################ # #' Poverty Probability Index (PPI) lookup table for Brazil @@ -262,56 +175,6 @@ "ppiBRA2010" -################################################################################ -# -#' Poverty Probability Index (PPI) lookup table for Burkina Faso -#' -#' @format A data frame with 15 columns and 101 rows: -#' \describe{ -#' \item{\code{score}}{PPI score} -#' \item{\code{nl100}}{National poverty line (100\%)} -#' \item{\code{nl150}}{National poverty line (150\%)} -#' \item{\code{nl200}}{National poverty line (200\%)} -#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} -#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} -#' \item{\code{ppp500}}{Below $5.00 per day purchasing power parity (2005)} -#' \item{\code{ppp100}}{Below $1.00 per day purchasing power parity (2011)} -#' \item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)} -#' \item{\code{ppp320}}{Below $3.20 per day purchasing power parity (2011)} -#' \item{\code{ppp550}}{Below $5.50 per day purchasing power parity (2011)} -#' \item{\code{percentile20}}{Below 20th percentile poverty line} -#' \item{\code{percentile40}}{Below 40th percentile poverty line} -#' \item{\code{percentile60}}{Below 60th percentile poverty line} -#' \item{\code{percentile80}}{Below 80th percentile poverty line} -#' } -#' -#' @examples -#' # Access Burkina Faso PPI table -#' ppiBFA2017 -#' -#' # Given a specific PPI score (from 0 - 100), get the row of poverty -#' # probabilities from PPI table it corresponds to -#' ppiScore <- 50 -#' ppiBFA2017[ppiBFA2017$score == ppiScore, ] -#' -#' # Use subset() function to get the row of poverty probabilities corresponding -#' # to specific PPI score -#' ppiScore <- 50 -#' subset(ppiBFA2017, score == ppiScore) -#' -#' # Given a specific PPI score (from 0 - 100), get a poverty probability -#' # based on a specific poverty definition. In this example, the national -#' # poverty line definition -#' ppiScore <- 50 -#' ppiBFA2017[ppiBFA2017$score == ppiScore, "nl100"] -#' -#' @source \url{https://www.povertyindex.org} -#' -# -################################################################################ -"ppiBFA2017" - - ################################################################################ # #' Poverty Probability Index (PPI) lookup table for Cameroon @@ -401,52 +264,6 @@ "ppiDOM2010" -################################################################################ -# -#' Poverty Probability Index (PPI) lookup table for Ecuador -#' -#' @format A data frame with 11 columns and 101 rows: -#' \describe{ -#' \item{\code{score}}{PPI score} -#' \item{\code{nlFood}}{Food poverty line} -#' \item{\code{nl100}}{National poverty line (100\%)} -#' \item{\code{nl150}}{National poverty line (150\%)} -#' \item{\code{nl200}}{National poverty line (200\%)} -#' \item{\code{half100}}{Poorest half below 100\% national} -#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} -#' \item{\code{ppp200}}{Below $2.00 per day purchasing power parity (2005)} -#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} -#' \item{\code{ppp500}}{Below $5.00 per day purchasing power parity (2005)} -#' \item{\code{ppp844}}{Below $8.44 per day purchasing power parity (2005)} -#' } -#' -#' @examples -#' # Access Ecuador PPI table -#' ppiECU2015 -#' -#' # Given a specific PPI score (from 0 - 100), get the row of poverty -#' # probabilities from PPI table it corresponds to -#' ppiScore <- 50 -#' ppiECU2015[ppiECU2015$score == ppiScore, ] -#' -#' # Use subset() function to get the row of poverty probabilities corresponding -#' # to specific PPI score -#' ppiScore <- 50 -#' subset(ppiECU2015, score == ppiScore) -#' -#' # Given a specific PPI score (from 0 - 100), get a poverty probability -#' # based on a specific poverty definition. In this example, the national -#' # poverty line definition -#' ppiScore <- 50 -#' ppiECU2015[ppiECU2015$score == ppiScore, "nl100"] -#' -#' @source \url{https://www.povertyindex.org} -#' -# -################################################################################ -"ppiECU2015" - - ################################################################################ # #' Poverty Probability Index (PPI) lookup table for Egypt @@ -490,106 +307,6 @@ "ppiEGY2010" -################################################################################ -# -#' Poverty Probability Index (PPI) lookup table for El Salvador -#' -#' @format A data frame with 9 columns and 101 rows: -#' \describe{ -#' \item{\code{score}}{PPI score} -#' \item{\code{nl100}}{National poverty line (100\%)} -#' \item{\code{nlFood}}{Food poverty line} -#' \item{\code{nl150}}{National poverty line (150\%)} -#' \item{\code{nl200}}{National poverty line (200\%)} -#' \item{\code{extreme}}{USAID extreme poverty} -#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} -#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} -#' \item{\code{ppp375}}{Below $3.75 per day purchasing power parity (2005)} -#' } -#' -#' @examples -#' # Access El Salvador PPI table -#' ppiSLV2010 -#' -#' # Given a specific PPI score (from 0 - 100), get the row of poverty -#' # probabilities from PPI table it corresponds to -#' ppiScore <- 50 -#' ppiSLV2010[ppiSLV2010$score == ppiScore, ] -#' -#' # Use subset() function to get the row of poverty probabilities corresponding -#' # to specific PPI score -#' ppiScore <- 50 -#' subset(ppiSLV2010, score == ppiScore) -#' -#' # Given a specific PPI score (from 0 - 100), get a poverty probability -#' # based on a specific poverty definition. In this example, the USAID -#' # extreme poverty definition -#' ppiScore <- 50 -#' ppiSLV2010[ppiSLV2010$score == ppiScore, "extreme"] -#' -#' @source \url{https://www.povertyindex.org} -#' -# -################################################################################ -"ppiSLV2010" - - -################################################################################ -# -#' Poverty Probability Index (PPI) lookup table for Ethiopia -#' -#' @format A data frame with 21 columns and 101 rows: -#' \describe{ -#' \item{\code{score}}{PPI score} -#' \item{\code{nlFood}}{Food poverty line} -#' \item{\code{nl100}}{National poverty line (100\%)} -#' \item{\code{nl150}}{National poverty line (150\%)} -#' \item{\code{nl200}}{National poverty line (200\%)} -#' \item{\code{ppp100}}{Below $1.00 per day purchasing power parity (2005)} -#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} -#' \item{\code{ppp175}}{Below $1.75 per day purchasing power parity (2005)} -#' \item{\code{ppp200}}{Below $2.00 per day purchasing power parity (2005)} -#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} -#' \item{\code{ppp500}}{Below $5.00 per day purchasing power parity (2005)} -#' \item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)} -#' \item{\code{ppp310}}{Below $3.10 per day purchasing power parity (2011)} -#' \item{\code{ppp380}}{Below $3.80 per day purchasing power parity (2011)} -#' \item{\code{ppp400}}{Below $4.00 per day purchasing power parity (2011)} -#' \item{\code{half100}}{Poorest half below 100 national} -#' \item{\code{percentile20}}{Below 20th percentile poverty line} -#' \item{\code{percentile40}}{Below 40th percentile poverty line} -#' \item{\code{percentile50}}{Below 50th percentile poverty line} -#' \item{\code{percentile60}}{Below 60th percentile poverty line} -#' \item{\code{percentile80}}{Below 80th percentile poverty line} -#' } -#' -#' @examples -#' # Access Ethiopia PPI table -#' ppiETH2016 -#' -#' # Given a specific PPI score (from 0 - 100), get the row of poverty -#' # probabilities from PPI table it corresponds to -#' ppiScore <- 50 -#' ppiETH2016[ppiETH2016$score == ppiScore, ] -#' -#' # Use subset() function to get the row of poverty probabilities corresponding -#' # to specific PPI score -#' ppiScore <- 50 -#' subset(ppiETH2016, score == ppiScore) -#' -#' # Given a specific PPI score (from 0 - 100), get a poverty probability -#' # based on a specific poverty definition. In this example, the national -#' # poverty line definition -#' ppiScore <- 50 -#' ppiETH2016[ppiETH2016$score == ppiScore, "nl100"] -#' -#' @source \url{https://www.povertyindex.org} -#' -# -################################################################################ -"ppiETH2016" - - ################################################################################ # #' Poverty Probability Index (PPI) lookup table for Fiji @@ -769,100 +486,6 @@ "ppiGHA2015_b" -################################################################################ -# -#' Poverty Probability Index (PPI) lookup table for Guatemala -#' -#' @format A data frame with 17 columns and 101 rows: -#' \describe{ -#' \item{\code{score}}{PPI score} -#' \item{\code{nlFood}}{Food poverty line} -#' \item{\code{nl100}}{National poverty line (100\%)} -#' \item{\code{nl150}}{National poverty line (150\%)} -#' \item{\code{nl200}}{National poverty line (200\%)} -#' \item{\code{half100}}{Poorest half below 100\% national} -#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} -#' \item{\code{ppp200}}{Below $2.00 per day purchasing power parity (2005)} -#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} -#' \item{\code{ppp500}}{Below $5.00 per day purchasing power parity (2005)} -#' \item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)} -#' \item{\code{ppp310}}{Below $3.10 per day purchasing power parity (2011)} -#' \item{\code{percentile20}}{Below 20th percentile poverty line} -#' \item{\code{percentile40}}{Below 40th percentile poverty line} -#' \item{\code{percentile50}}{Below 50th percentile poverty line} -#' \item{\code{percentile60}}{Below 60th percentile poverty line} -#' \item{\code{percentile80}}{Below 80th percentile poverty line} -#' } -#' -#' @examples -#' # Access Guatemala PPI table -#' ppiGTM2016 -#' -#' # Given a specific PPI score (from 0 - 100), get the row of poverty -#' # probabilities from PPI table it corresponds to -#' ppiScore <- 50 -#' ppiGTM2016[ppiGTM2016$score == ppiScore, ] -#' -#' # Use subset() function to get the row of poverty probabilities corresponding -#' # to specific PPI score -#' ppiScore <- 50 -#' subset(ppiGTM2016, score == ppiScore) -#' -#' # Given a specific PPI score (from 0 - 100), get a poverty probability -#' # based on a specific poverty definition. In this example, the national -#' # poverty line definition -#' ppiScore <- 50 -#' ppiGTM2016[ppiGTM2016$score == ppiScore, "nl100"] -#' -#' @source \url{https://www.povertyindex.org} -#' -# -################################################################################ -"ppiGTM2016" - - -################################################################################ -# -#' Poverty Probability Index (PPI) lookup table for Honduras -#' -#' @format A data frame with 7 columns and 101 rows: -#' \describe{ -#' \item{\code{score}}{PPI score} -#' \item{\code{nl100}}{National poverty line (100\%)} -#' \item{\code{nlFood}}{Food poverty line} -#' \item{\code{extreme}}{USAID extreme poverty} -#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} -#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} -#' \item{\code{ppp375}}{Below $3.75 per day purchasing power parity (2005)} -#' } -#' -#' @examples -#' # Access Honduras PPI table -#' ppiHND2010 -#' -#' # Given a specific PPI score (from 0 - 100), get the row of poverty -#' # probabilities from PPI table it corresponds to -#' ppiScore <- 50 -#' ppiHND2010[ppiHND2010$score == ppiScore, ] -#' -#' # Use subset() function to get the row of poverty probabilities corresponding -#' # to specific PPI score -#' ppiScore <- 50 -#' subset(ppiHND2010, score == ppiScore) -#' -#' # Given a specific PPI score (from 0 - 100), get a poverty probability -#' # based on a specific poverty definition. In this example, the USAID -#' # extreme poverty definition -#' ppiScore <- 50 -#' ppiHND2010[ppiHND2010$score == ppiScore, "extreme"] -#' -#' @source \url{https://www.povertyindex.org} -#' -# -################################################################################ -"ppiHND2010" - - ################################################################################ # #' Poverty Probability Index (PPI) lookup table for Haiti @@ -988,188 +611,106 @@ #' # ################################################################################ -"ppiIND2016_r62" - - -################################################################################ -# -#' Poverty Probability Index (PPI) lookup table for India using r66 poverty -#' definitions -#' -#' @format A data frame with 8 columns and 101 rows: -#' \describe{ -#' \item{\code{score}}{PPI score} -#' \item{\code{tendulkar}}{National tendulkar} -#' \item{\code{tendulkar100}}{National tendulkar (100\%)} -#' \item{\code{tendulkar150}}{National tendulkar (150\%)} -#' \item{\code{tendulkar200}}{National tendulkar (200\%)} -#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} -#' \item{\code{ppp188}}{Below $1.88 per day purchasing power parity (2005)} -#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} -#' } -#' -#' @examples -#' # Access India PPI table -#' ppiIND2016_r66 -#' -#' # Given a specific PPI score (from 0 - 100), get the row of poverty -#' # probabilities from PPI table it corresponds to -#' ppiScore <- 50 -#' ppiIND2016_r66[ppiIND2016_r66$score == ppiScore, ] -#' -#' # Use subset() function to get the row of poverty probabilities corresponding -#' # to specific PPI score -#' ppiScore <- 50 -#' subset(ppiIND2016_r66, score == ppiScore) -#' -#' # Given a specific PPI score (from 0 - 100), get a poverty probability -#' # based on a specific poverty definition. In this example, the national -#' # tendulkar poverty definition -#' ppiScore <- 50 -#' ppiIND2016_r66[ppiIND2016_r66$score == ppiScore, "tendulkar"] -#' -#' @source \url{https://www.povertyindex.org} -#' -# -################################################################################ -"ppiIND2016_r66" - - -################################################################################ -# -#' Poverty Probability Index (PPI) lookup table for India using r68 poverty -#' definitions -#' -#' @format A data frame with 16 columns and 101 rows: -#' \describe{ -#' \item{\code{score}}{PPI score} -#' \item{\code{rangarajan100}}{National rangarajan (100\%)} -#' \item{\code{rangarajan150}}{National rangarajan (150\%)} -#' \item{\code{rangarajan200}}{National rangarajan (200\%)} -#' \item{\code{half100}}{Poorest half below 100\% national} -#' \item{\code{rbiUrban}}{RBI urban} -#' \item{\code{rbiRural}}{RBI rural} -#' \item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)} -#' \item{\code{ppp310}}{Below $3.10 per day purchasing power parity (2011)} -#' \item{\code{ppp380}}{Below $3.80 per day purchasing power parity (2011)} -#' \item{\code{ppp400}}{Below $4.00 per day purchasing power parity (2011)} -#' \item{\code{percentile20}}{Below 20th percentile poverty line} -#' \item{\code{percentile40}}{Below 40th percentile poverty line} -#' \item{\code{percentile50}}{Below 50th percentile poverty line} -#' \item{\code{percentile60}}{Below 60th percentile poverty line} -#' \item{\code{percentile80}}{Below 80th percentile poverty line} -#' } -#' -#' @examples -#' # Access India PPI table -#' ppiIND2016_r68 -#' -#' # Given a specific PPI score (from 0 - 100), get the row of poverty -#' # probabilities from PPI table it corresponds to -#' ppiScore <- 50 -#' ppiIND2016_r68[ppiIND2016_r68$score == ppiScore, ] -#' -#' # Use subset() function to get the row of poverty probabilities corresponding -#' # to specific PPI score -#' ppiScore <- 50 -#' subset(ppiIND2016_r68, score == ppiScore) -#' -#' # Given a specific PPI score (from 0 - 100), get a poverty probability -#' # based on a specific poverty definition. In this example, the national -#' # rangarajan poverty definition -#' ppiScore <- 50 -#' ppiIND2016_r68[ppiIND2016_r68$score == ppiScore, "rangarajan100"] -#' -#' @source \url{https://www.povertyindex.org} -#' -# -################################################################################ -"ppiIND2016_r68" +"ppiIND2016_r62" ################################################################################ # -#' Poverty Probability Index (PPI) lookup table for Indonesia using legacy -#' poverty definitions +#' Poverty Probability Index (PPI) lookup table for India using r66 poverty +#' definitions #' -#' @format A data frame with 4 columns and 101 rows: +#' @format A data frame with 8 columns and 101 rows: #' \describe{ #' \item{\code{score}}{PPI score} -#' \item{\code{nl100}}{National poverty line (100\%)} +#' \item{\code{tendulkar}}{National tendulkar} +#' \item{\code{tendulkar100}}{National tendulkar (100\%)} +#' \item{\code{tendulkar150}}{National tendulkar (150\%)} +#' \item{\code{tendulkar200}}{National tendulkar (200\%)} #' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} +#' \item{\code{ppp188}}{Below $1.88 per day purchasing power parity (2005)} #' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} #' } #' #' @examples -#' # Access Indonesia PPI table -#' ppiIDN2012 +#' # Access India PPI table +#' ppiIND2016_r66 #' #' # Given a specific PPI score (from 0 - 100), get the row of poverty #' # probabilities from PPI table it corresponds to #' ppiScore <- 50 -#' ppiIDN2012[ppiIDN2012$score == ppiScore, ] +#' ppiIND2016_r66[ppiIND2016_r66$score == ppiScore, ] #' #' # Use subset() function to get the row of poverty probabilities corresponding #' # to specific PPI score #' ppiScore <- 50 -#' subset(ppiIDN2012, score == ppiScore) +#' subset(ppiIND2016_r66, score == ppiScore) #' #' # Given a specific PPI score (from 0 - 100), get a poverty probability #' # based on a specific poverty definition. In this example, the national -#' # poverty line definition +#' # tendulkar poverty definition #' ppiScore <- 50 -#' ppiIDN2012[ppiIDN2012$score == ppiScore, "nl100"] +#' ppiIND2016_r66[ppiIND2016_r66$score == ppiScore, "tendulkar"] #' #' @source \url{https://www.povertyindex.org} #' # ################################################################################ -"ppiIDN2012" +"ppiIND2016_r66" ################################################################################ # -#' Poverty Probability Index (PPI) lookup table for Indonesia using new -#' poverty definitions +#' Poverty Probability Index (PPI) lookup table for India using r68 poverty +#' definitions #' -#' @format A data frame with 9 columns and 101 rows: +#' @format A data frame with 16 columns and 101 rows: #' \describe{ #' \item{\code{score}}{PPI score} -#' \item{\code{nl100}}{National poverty line (100\%)} -#' \item{\code{nl150}}{National poverty line (150\%)} -#' \item{\code{nl200}}{National poverty line (200\%)} -#' \item{\code{extreme}}{USAID extreme poverty} -#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} -#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} +#' \item{\code{rangarajan100}}{National rangarajan (100\%)} +#' \item{\code{rangarajan150}}{National rangarajan (150\%)} +#' \item{\code{rangarajan200}}{National rangarajan (200\%)} +#' \item{\code{half100}}{Poorest half below 100\% national} +#' \item{\code{rbiUrban}}{RBI urban} +#' \item{\code{rbiRural}}{RBI rural} #' \item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)} #' \item{\code{ppp310}}{Below $3.10 per day purchasing power parity (2011)} +#' \item{\code{ppp380}}{Below $3.80 per day purchasing power parity (2011)} +#' \item{\code{ppp400}}{Below $4.00 per day purchasing power parity (2011)} +#' \item{\code{percentile20}}{Below 20th percentile poverty line} +#' \item{\code{percentile40}}{Below 40th percentile poverty line} +#' \item{\code{percentile50}}{Below 50th percentile poverty line} +#' \item{\code{percentile60}}{Below 60th percentile poverty line} +#' \item{\code{percentile80}}{Below 80th percentile poverty line} #' } #' #' @examples -#' # Access Indonesia PPI table -#' ppiIDN2012_a +#' # Access India PPI table +#' ppiIND2016_r68 #' #' # Given a specific PPI score (from 0 - 100), get the row of poverty #' # probabilities from PPI table it corresponds to #' ppiScore <- 50 -#' ppiIDN2012_a[ppiIDN2012_a$score == ppiScore, ] +#' ppiIND2016_r68[ppiIND2016_r68$score == ppiScore, ] #' #' # Use subset() function to get the row of poverty probabilities corresponding #' # to specific PPI score #' ppiScore <- 50 -#' subset(ppiIDN2012_a, score == ppiScore) +#' subset(ppiIND2016_r68, score == ppiScore) #' #' # Given a specific PPI score (from 0 - 100), get a poverty probability -#' # based on a specific poverty definition. In this example, the USAID -#' # extreme poverty definition +#' # based on a specific poverty definition. In this example, the national +#' # rangarajan poverty definition #' ppiScore <- 50 -#' ppiIDN2012_a[ppiIDN2012_a$score == ppiScore, "extreme"] +#' ppiIND2016_r68[ppiIND2016_r68$score == ppiScore, "rangarajan100"] #' #' @source \url{https://www.povertyindex.org} #' # ################################################################################ -"ppiIDN2012_a" +"ppiIND2016_r68" + + + ################################################################################ @@ -1395,144 +936,6 @@ "ppiMDG2015" -################################################################################ -# -#' Poverty Probability Index (PPI) lookup table for Malawi using government -#' poverty definitions -#' -#' @format A data frame with 14 columns and 101 rows: -#' \describe{ -#' \item{\code{score}}{PPI score} -#' \item{\code{nlFood}}{Food poverty line} -#' \item{\code{nl100}}{National poverty line (100\%)} -#' \item{\code{nl150}}{National poverty line (150\%)} -#' \item{\code{nl200}}{National poverty line (200\%)} -#' \item{\code{half100}}{Poorest half below 100\% national} -#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} -#' \item{\code{ppp200}}{Below $2.00 per day purchasing power parity (2005)} -#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} -#' \item{\code{ppp500}}{Below $5.00 per day purchasing power parity (2005)} -#' \item{\code{ppp844}}{Below $8.44 per day purchasing power parity (2005)} -#' \item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)} -#' \item{\code{ppp310}}{Below $3.10 per day purchasing power parity (2011)} -#' \item{\code{ppp1000}}{Below $10.00 per day purchasing power parity (2011)} -#' } -#' -#' @examples -#' # Access Malawi PPI table -#' ppiMWI2015_gov -#' -#' # Given a specific PPI score (from 0 - 100), get the row of poverty -#' # probabilities from PPI table it corresponds to -#' ppiScore <- 50 -#' ppiMWI2015_gov[ppiMWI2015_gov$score == ppiScore, ] -#' -#' # Use subset() function to get the row of poverty probabilities corresponding -#' # to specific PPI score -#' ppiScore <- 50 -#' subset(ppiMWI2015_gov, score == ppiScore) -#' -#' # Given a specific PPI score (from 0 - 100), get a poverty probability -#' # based on a specific poverty definition. In this example, the national -#' # poverty line definition -#' ppiScore <- 50 -#' ppiMWI2015_gov[ppiMWI2015_gov$score == ppiScore, "nl100"] -#' -#' @source \url{https://www.povertyindex.org} -#' -# -################################################################################ -"ppiMWI2015_gov" - - -################################################################################ -# -#' Poverty Probability Index (PPI) lookup table for Malawi using legacy -#' poverty definitions -#' -#' @format A data frame with 3 columns and 101 rows: -#' \describe{ -#' \item{\code{score}}{PPI score} -#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} -#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} -#' } -#' -#' @examples -#' # Access Malawi PPI table -#' ppiMWI2015 -#' -#' # Given a specific PPI score (from 0 - 100), get the row of poverty -#' # probabilities from PPI table it corresponds to -#' ppiScore <- 50 -#' ppiMWI2015[ppiMWI2015$score == ppiScore, ] -#' -#' # Use subset() function to get the row of poverty probabilities corresponding -#' # to specific PPI score -#' ppiScore <- 50 -#' subset(ppiMWI2015, score == ppiScore) -#' -#' # Given a specific PPI score (from 0 - 100), get a poverty probability -#' # based on a specific poverty definition. In this example, below $1.25 -#' # purchasing power parity (2005) -#' ppiScore <- 50 -#' ppiMWI2015[ppiMWI2015$score == ppiScore, "ppp125"] -#' -#' @source \url{https://www.povertyindex.org} -#' -# -################################################################################ -"ppiMWI2015" - - -################################################################################ -# -#' Poverty Probability Index (PPI) lookup table for Malawi using PBM poverty -#' definitions -#' -#' @format A data frame with 13 columns and 101 rows: -#' \describe{ -#' \item{\code{score}}{PPI score} -#' \item{\code{nlFood}}{Food poverty line} -#' \item{\code{nl100}}{National poverty line (100\%)} -#' \item{\code{nl150}}{National poverty line (150\%)} -#' \item{\code{nl200}}{National poverty line (200\%)} -#' \item{\code{half100}}{Poorest half below 100\% national} -#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} -#' \item{\code{ppp200}}{Below $2.00 per day purchasing power parity (2005)} -#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} -#' \item{\code{ppp500}}{Below $5.00 per day purchasing power parity (2005)} -#' \item{\code{ppp844}}{Below $8.44 per day purchasing power parity (2005)} -#' \item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)} -#' \item{\code{ppp310}}{Below $3.10 per day purchasing power parity (2011)} -#' } -#' -#' @examples -#' # Access Malawi PPI table -#' ppiMWI2015_pbm -#' -#' # Given a specific PPI score (from 0 - 100), get the row of poverty -#' # probabilities from PPI table it corresponds to -#' ppiScore <- 50 -#' ppiMWI2015_pbm[ppiMWI2015_pbm$score == ppiScore, ] -#' -#' # Use subset() function to get the row of poverty probabilities corresponding -#' # to specific PPI score -#' ppiScore <- 50 -#' subset(ppiMWI2015_pbm, score == ppiScore) -#' -#' # Given a specific PPI score (from 0 - 100), get a poverty probability -#' # based on a specific poverty definition. In this example, the national -#' # poverty line definition -#' ppiScore <- 50 -#' ppiMWI2015_pbm[ppiMWI2015_pbm$score == ppiScore, "nl100"] -#' -#' @source \url{https://www.povertyindex.org} -#' -# -################################################################################ -"ppiMWI2015_pbm" - - ################################################################################ # #' Poverty Probability Index (PPI) lookup table for Mali @@ -2126,219 +1529,133 @@ #' @format A data frame with 11 columns and 101 rows: #' \describe{ #' \item{\code{score}}{PPI score} -#' \item{\code{deep}}{Deep poverty} -#' \item{\code{nl100}}{National poverty line (100\%)} -#' \item{\code{nl150}}{National poverty line (150\%)} -#' \item{\code{nl200}}{National poverty line (200\%)} -#' \item{\code{median}}{Poorest half below 100\% national} -#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} -#' \item{\code{ppp200}}{Below $2.00 per day purchasing power parity (2005)} -#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} -#' \item{\code{ppp375}}{Below $3.75 per day purchasing power parity (2005)} -#' \item{\code{ppp500}}{Below $5.00 per day purchasing power parity (2005)} -#' } -#' -#' @examples -#' # Access Palestine PPI table -#' ppiPSE2014 -#' -#' # Given a specific PPI score (from 0 - 100), get the row of poverty -#' # probabilities from PPI table it corresponds to -#' ppiScore <- 50 -#' ppiPSE2014[ppiPSE2014$score == ppiScore, ] -#' -#' # Use subset() function to get the row of poverty probabilities corresponding -#' # to specific PPI score -#' ppiScore <- 50 -#' subset(ppiPSE2014, score == ppiScore) -#' -#' # Given a specific PPI score (from 0 - 100), get a poverty probability -#' # based on a specific poverty definition. In this example, the national -#' # poverty line definition -#' ppiScore <- 50 -#' ppiPSE2014[ppiPSE2014$score == ppiScore, "nl100"] -#' -#' @source \url{https://www.povertyindex.org} -#' -# -################################################################################ -"ppiPSE2014" - - -################################################################################ -# -#' Poverty Probability Index (PPI) lookup table for Paraguay -#' -#' @format A data frame with 8 columns and 101 rows: -#' \describe{ -#' \item{\code{score}}{PPI score} -#' \item{\code{nlFood}}{Food poverty line} -#' \item{\code{nl100}}{National poverty line (100\%)} -#' \item{\code{nl150}}{National poverty line (150\%)} -#' \item{\code{nl200}}{National poverty line (200\%)} -#' \item{\code{extreme}}{USAID extreme poverty} -#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} -#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} -#' } -#' -#' @examples -#' # Access Paraguay PPI table -#' ppiPRY2012 -#' -#' # Given a specific PPI score (from 0 - 100), get the row of poverty -#' # probabilities from PPI table it corresponds to -#' ppiScore <- 50 -#' ppiPRY2012[ppiPRY2012$score == ppiScore, ] -#' -#' # Use subset() function to get the row of poverty probabilities corresponding -#' # to specific PPI score -#' ppiScore <- 50 -#' subset(ppiPRY2012, score == ppiScore) -#' -#' # Given a specific PPI score (from 0 - 100), get a poverty probability -#' # based on a specific poverty definition. In this example, the national -#' # poverty line definition -#' ppiScore <- 50 -#' ppiPRY2012[ppiPRY2012$score == ppiScore, "nl100"] -#' -#' @source \url{https://www.povertyindex.org} -#' -# -################################################################################ -"ppiPRY2012" - - -################################################################################ -# -#' Poverty Probability Index (PPI) lookup table for Peru -#' -#' @format A data frame with 9 columns and 101 rows: -#' \describe{ -#' \item{\code{score}}{PPI score} -#' \item{\code{nlFood}}{Food poverty line} +#' \item{\code{deep}}{Deep poverty} #' \item{\code{nl100}}{National poverty line (100\%)} #' \item{\code{nl150}}{National poverty line (150\%)} #' \item{\code{nl200}}{National poverty line (200\%)} -#' \item{\code{extreme}}{USAID extreme poverty} +#' \item{\code{median}}{Poorest half below 100\% national} #' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} +#' \item{\code{ppp200}}{Below $2.00 per day purchasing power parity (2005)} #' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} #' \item{\code{ppp375}}{Below $3.75 per day purchasing power parity (2005)} +#' \item{\code{ppp500}}{Below $5.00 per day purchasing power parity (2005)} #' } #' #' @examples -#' # Access Peru PPI table -#' ppiPER2012 +#' # Access Palestine PPI table +#' ppiPSE2014 #' #' # Given a specific PPI score (from 0 - 100), get the row of poverty #' # probabilities from PPI table it corresponds to #' ppiScore <- 50 -#' ppiPER2012[ppiPER2012$score == ppiScore, ] +#' ppiPSE2014[ppiPSE2014$score == ppiScore, ] #' #' # Use subset() function to get the row of poverty probabilities corresponding #' # to specific PPI score #' ppiScore <- 50 -#' subset(ppiPER2012, score == ppiScore) +#' subset(ppiPSE2014, score == ppiScore) #' #' # Given a specific PPI score (from 0 - 100), get a poverty probability #' # based on a specific poverty definition. In this example, the national #' # poverty line definition #' ppiScore <- 50 -#' ppiPER2012[ppiPER2012$score == ppiScore, "nl100"] +#' ppiPSE2014[ppiPSE2014$score == ppiScore, "nl100"] #' #' @source \url{https://www.povertyindex.org} #' # ################################################################################ -"ppiPER2012" +"ppiPSE2014" ################################################################################ # -#' Poverty Probability Index (PPI) lookup table for Philippines using legacy -#' poverty definitions +#' Poverty Probability Index (PPI) lookup table for Paraguay #' -#' @format A data frame with 6 columns and 101 rows: +#' @format A data frame with 8 columns and 101 rows: #' \describe{ #' \item{\code{score}}{PPI score} +#' \item{\code{nlFood}}{Food poverty line} #' \item{\code{nl100}}{National poverty line (100\%)} +#' \item{\code{nl150}}{National poverty line (150\%)} +#' \item{\code{nl200}}{National poverty line (200\%)} +#' \item{\code{extreme}}{USAID extreme poverty} #' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} #' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} -#' \item{\code{ppp500}}{Below $5.00 per day purchasing power parity (2005)} -#' \item{\code{ppp432}}{Below $4.32 per day purchasing power parity (1993)} #' } #' #' @examples -#' # Access Philippines PPI table -#' ppiPHL2014 +#' # Access Paraguay PPI table +#' ppiPRY2012 #' #' # Given a specific PPI score (from 0 - 100), get the row of poverty #' # probabilities from PPI table it corresponds to #' ppiScore <- 50 -#' ppiPHL2014[ppiPHL2014$score == ppiScore, ] +#' ppiPRY2012[ppiPRY2012$score == ppiScore, ] #' #' # Use subset() function to get the row of poverty probabilities corresponding #' # to specific PPI score #' ppiScore <- 50 -#' subset(ppiPHL2014, score == ppiScore) +#' subset(ppiPRY2012, score == ppiScore) #' #' # Given a specific PPI score (from 0 - 100), get a poverty probability #' # based on a specific poverty definition. In this example, the national #' # poverty line definition #' ppiScore <- 50 -#' ppiPHL2014[ppiPHL2014$score == ppiScore, "nl100"] +#' ppiPRY2012[ppiPRY2012$score == ppiScore, "nl100"] #' #' @source \url{https://www.povertyindex.org} #' # ################################################################################ -"ppiPHL2014" +"ppiPRY2012" ################################################################################ # -#' Poverty Probability Index (PPI) lookup table for Philippines using new -#' poverty definitions +#' Poverty Probability Index (PPI) lookup table for Peru #' -#' @format A data frame with 11 columns and 101 rows: +#' @format A data frame with 9 columns and 101 rows: #' \describe{ #' \item{\code{score}}{PPI score} +#' \item{\code{nlFood}}{Food poverty line} #' \item{\code{nl100}}{National poverty line (100\%)} #' \item{\code{nl150}}{National poverty line (150\%)} #' \item{\code{nl200}}{National poverty line (200\%)} -#' \item{\code{median}}{Poorest half below 100\% national} +#' \item{\code{extreme}}{USAID extreme poverty} #' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} -#' \item{\code{ppp200}}{Below $2.00 per day purchasing power parity (2005)} #' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} -#' \item{\code{ppp500}}{Below $5.00 per day purchasing power parity (2005)} -#' \item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)} -#' \item{\code{ppp310}}{Below $3.10 per day purchasing power parity (2011)} +#' \item{\code{ppp375}}{Below $3.75 per day purchasing power parity (2005)} #' } #' #' @examples -#' # Access Philippines PPI table -#' ppiPHL2014_a +#' # Access Peru PPI table +#' ppiPER2012 #' #' # Given a specific PPI score (from 0 - 100), get the row of poverty #' # probabilities from PPI table it corresponds to #' ppiScore <- 50 -#' ppiPHL2014_a[ppiPHL2014_a$score == ppiScore, ] +#' ppiPER2012[ppiPER2012$score == ppiScore, ] #' #' # Use subset() function to get the row of poverty probabilities corresponding #' # to specific PPI score #' ppiScore <- 50 -#' subset(ppiPHL2014_a, score == ppiScore) +#' subset(ppiPER2012, score == ppiScore) #' #' # Given a specific PPI score (from 0 - 100), get a poverty probability #' # based on a specific poverty definition. In this example, the national #' # poverty line definition #' ppiScore <- 50 -#' ppiPHL2014_a[ppiPHL2014_a$score == ppiScore, "nl100"] +#' ppiPER2012[ppiPER2012$score == ppiScore, "nl100"] #' #' @source \url{https://www.povertyindex.org} #' # ################################################################################ -"ppiPHL2014_a" +"ppiPER2012" + + + ################################################################################ @@ -2610,49 +1927,6 @@ "ppiLKA2016" -################################################################################ -# -#' Poverty Probability Index (PPI) lookup table for South Africa -#' -#' @format A data frame with 8 columns and 101 rows: -#' \describe{ -#' \item{\code{score}}{PPI score} -#' \item{\code{nl100}}{National poverty line (100\%)} -#' \item{\code{nlFood}}{Food poverty line} -#' \item{\code{extreme}}{USAID extreme poverty} -#' \item{\code{nu100}}{National upper poverty line (100\%)} -#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} -#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} -#' \item{\code{ppp400}}{Below $4.00 per day purchasing power parity (2005)} -#' } -#' -#' @examples -#' # Access South Africa PPI table -#' ppiZAF2009 -#' -#' # Given a specific PPI score (from 0 - 100), get the row of poverty -#' # probabilities from PPI table it corresponds to -#' ppiScore <- 50 -#' ppiZAF2009[ppiZAF2009$score == ppiScore, ] -#' -#' # Use subset() function to get the row of poverty probabilities corresponding -#' # to specific PPI score -#' ppiScore <- 50 -#' subset(ppiZAF2009, score == ppiScore) -#' -#' # Given a specific PPI score (from 0 - 100), get a poverty probability -#' # based on a specific poverty definition. In this example, the national -#' # poverty line definition -#' ppiScore <- 50 -#' ppiZAF2009[ppiZAF2009$score == ppiScore, "nl100"] -#' -#' @source \url{https://www.povertyindex.org} -#' -# -################################################################################ -"ppiZAF2009" - - ################################################################################ # #' Poverty Probability Index (PPI) lookup table for Syria @@ -2764,339 +2038,168 @@ #' \item{\code{median}}{Poorest half below 100\% national} #' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} #' \item{\code{ppp200}}{Below $2.00 per day purchasing power parity (2005)} -#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} -#' } -#' -#' @examples -#' # Access Tajikistan PPI table -#' ppiTJK2015 -#' -#' # Given a specific PPI score (from 0 - 100), get the row of poverty -#' # probabilities from PPI table it corresponds to -#' ppiScore <- 50 -#' ppiTJK2015[ppiTJK2015$score == ppiScore, ] -#' -#' # Use subset() function to get the row of poverty probabilities corresponding -#' # to specific PPI score -#' ppiScore <- 50 -#' subset(ppiTJK2015, score == ppiScore) -#' -#' # Given a specific PPI score (from 0 - 100), get a poverty probability -#' # based on a specific poverty definition. In this example, the national -#' # poverty line definition -#' ppiScore <- 50 -#' ppiTJK2015[ppiTJK2015$score == ppiScore, "nl100"] -#' -#' @source \url{https://www.povertyindex.org} -#' -# -################################################################################ -"ppiTJK2015" - - -################################################################################ -# -#' Poverty Probability Index (PPI) lookup table for Timor Leste -#' -#' @format A data frame with 8 columns and 101 rows: -#' \describe{ -#' \item{\code{score}}{PPI score} -#' \item{\code{nl100}}{National lower poverty line (100\%)} -#' \item{\code{nu100}}{National upper poverty line (100\%)} -#' \item{\code{nu150}}{National upper poverty line (150\%)} -#' \item{\code{nu200}}{National upper poverty line (200\%)} -#' \item{\code{extreme}}{USAID extreme poverty} -#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} -#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} -#' } -#' -#' @examples -#' # Access Timor Leste PPI table -#' ppiTLS2013 -#' -#' # Given a specific PPI score (from 0 - 100), get the row of poverty -#' # probabilities from PPI table it corresponds to -#' ppiScore <- 50 -#' ppiTLS2013[ppiTLS2013$score == ppiScore, ] -#' -#' # Use subset() function to get the row of poverty probabilities corresponding -#' # to specific PPI score -#' ppiScore <- 50 -#' subset(ppiTLS2013, score == ppiScore) -#' -#' # Given a specific PPI score (from 0 - 100), get a poverty probability -#' # based on a specific poverty definition. In this example, the national -#' # poverty line definition -#' ppiScore <- 50 -#' ppiTLS2013[ppiTLS2013$score == ppiScore, "nl100"] -#' -#' @source \url{https://www.povertyindex.org} -#' -# -################################################################################ -"ppiTLS2013" - - -################################################################################ -# -#' Poverty Probability Index (PPI) lookup table for Uganda -#' -#' @format A data frame with 13 columns and 101 rows: -#' \describe{ -#' \item{\code{score}}{PPI score} -#' \item{\code{nl100}}{National poverty line (100\%)} -#' \item{\code{nl150}}{National poverty line (150\%)} -#' \item{\code{nl200}}{National poverty line (200\%)} -#' \item{\code{half100}}{Poorest half below 100\% national} -#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} -#' \item{\code{ppp200}}{Below $2.00 per day purchasing power parity (2005)} -#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} -#' \item{\code{ppp400}}{Below $4.00 per day purchasing power parity (2005)} -#' \item{\code{ppp500}}{Below $5.00 per day purchasing power parity (2005)} -#' \item{\code{ppp844}}{Below $8.44 per day purchasing power parity (2005)} -#' \item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)} -#' \item{\code{ppp310}}{Below $3.10 per day purchasing power parity (2011)} -#' } -#' -#' @examples -#' # Access Uganda PPI table -#' ppiUGA2015 -#' -#' # Given a specific PPI score (from 0 - 100), get the row of poverty -#' # probabilities from PPI table it corresponds to -#' ppiScore <- 50 -#' ppiUGA2015[ppiUGA2015$score == ppiScore, ] -#' -#' # Use subset() function to get the row of poverty probabilities corresponding -#' # to specific PPI score -#' ppiScore <- 50 -#' subset(ppiUGA2015, score == ppiScore) -#' -#' # Given a specific PPI score (from 0 - 100), get a poverty probability -#' # based on a specific poverty definition. In this example, the national -#' # poverty line definition -#' ppiScore <- 50 -#' ppiUGA2015[ppiUGA2015$score == ppiScore, "nl100"] -#' -#' @source \url{https://www.povertyindex.org} -#' -# -################################################################################ -"ppiUGA2015" - - -################################################################################ -# -#' Poverty Probability Index (PPI) lookup table for Vietnam -#' -#' @format A data frame with 8 columns and 101 rows: -#' \describe{ -#' \item{\code{score}}{PPI score} -#' \item{\code{nl100}}{National poverty line (100\%)} -#' \item{\code{nlFood}}{Food poverty line} -#' \item{\code{extreme}}{USAID extreme poverty line} -#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} -#' \item{\code{ppp175}}{Below $1.75 per day purchasing power parity (2005)} -#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} -#' \item{\code{molisa}}{MOLISA poverty line} -#' } -#' -#' @examples -#' # Access Vietnam PPI table -#' ppiVNM2009 -#' -#' # Given a specific PPI score (from 0 - 100), get the row of poverty -#' # probabilities from PPI table it corresponds to -#' ppiScore <- 50 -#' ppiVNM2009[ppiVNM2009$score == ppiScore, ] -#' -#' # Use subset() function to get the row of poverty probabilities corresponding -#' # to specific PPI score -#' ppiScore <- 50 -#' subset(ppiVNM2009, score == ppiScore) -#' -#' # Given a specific PPI score (from 0 - 100), get a poverty probability -#' # based on a specific poverty definition. In this example, the national -#' # poverty line definition -#' ppiScore <- 50 -#' ppiVNM2009[ppiVNM2009$score == ppiScore, "nl100"] -#' -#' @source \url{https://www.povertyindex.org} -#' -# -################################################################################ -"ppiVNM2009" - - -################################################################################ -# -#' Poverty Probability Index (PPI) lookup table for Yemen -#' -#' @format A data frame with 8 columns and 101 rows: -#' \describe{ -#' \item{\code{score}}{PPI score} -#' \item{\code{nl100}}{National poverty line (100\%)} -#' \item{\code{nlFood}}{Food poverty line} -#' \item{\code{extreme}}{USAID extreme poverty} -#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} -#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} -#' \item{\code{ppp300}}{Below $3.00 per day purchasing power parity (2005)} -#' \item{\code{ppp400}}{Below $4.00 per day purchasing power parity (2005)} +#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} #' } #' #' @examples -#' # Access Yemen PPI table -#' ppiYEM2009 +#' # Access Tajikistan PPI table +#' ppiTJK2015 #' #' # Given a specific PPI score (from 0 - 100), get the row of poverty #' # probabilities from PPI table it corresponds to #' ppiScore <- 50 -#' ppiYEM2009[ppiYEM2009$score == ppiScore, ] +#' ppiTJK2015[ppiTJK2015$score == ppiScore, ] #' #' # Use subset() function to get the row of poverty probabilities corresponding #' # to specific PPI score #' ppiScore <- 50 -#' subset(ppiYEM2009, score == ppiScore) +#' subset(ppiTJK2015, score == ppiScore) #' #' # Given a specific PPI score (from 0 - 100), get a poverty probability #' # based on a specific poverty definition. In this example, the national #' # poverty line definition #' ppiScore <- 50 -#' ppiYEM2009[ppiYEM2009$score == ppiScore, "nl100"] +#' ppiTJK2015[ppiTJK2015$score == ppiScore, "nl100"] #' #' @source \url{https://www.povertyindex.org} #' # ################################################################################ -"ppiYEM2009" +"ppiTJK2015" ################################################################################ # -#' Poverty Probability Index (PPI) lookup table for Cambodia +#' Poverty Probability Index (PPI) lookup table for Timor Leste #' -#' @format A data frame with 9 columns and 101 rows: +#' @format A data frame with 8 columns and 101 rows: #' \describe{ #' \item{\code{score}}{PPI score} -#' \item{\code{nl100}}{National poverty line (100\%)} -#' \item{\code{nl150}}{National poverty line (150\%)} -#' \item{\code{nl200}}{National poverty line (200\%)} -#' \item{\code{median}}{Median poverty line} +#' \item{\code{nl100}}{National lower poverty line (100\%)} +#' \item{\code{nu100}}{National upper poverty line (100\%)} +#' \item{\code{nu150}}{National upper poverty line (150\%)} +#' \item{\code{nu200}}{National upper poverty line (200\%)} +#' \item{\code{extreme}}{USAID extreme poverty} #' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} -#' \item{\code{ppp200}}{Below $2.00 per day purchasing power parity (2005)} #' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} -#' \item{\code{ppp500}}{Below $5.00 per day purchasing power parity (2005)} #' } #' #' @examples -#' # Access Cambodia PPI table -#' ppiKHM2015_wb +#' # Access Timor Leste PPI table +#' ppiTLS2013 #' #' # Given a specific PPI score (from 0 - 100), get the row of poverty #' # probabilities from PPI table it corresponds to #' ppiScore <- 50 -#' ppiKHM2015_wb[ppiKHM2015_wb$score == ppiScore, ] +#' ppiTLS2013[ppiTLS2013$score == ppiScore, ] #' #' # Use subset() function to get the row of poverty probabilities corresponding #' # to specific PPI score #' ppiScore <- 50 -#' subset(ppiKHM2015_wb, score == ppiScore) +#' subset(ppiTLS2013, score == ppiScore) #' #' # Given a specific PPI score (from 0 - 100), get a poverty probability #' # based on a specific poverty definition. In this example, the national #' # poverty line definition #' ppiScore <- 50 -#' ppiKHM2015_wb[ppiKHM2015_wb$score == ppiScore, "nl100"] +#' ppiTLS2013[ppiTLS2013$score == ppiScore, "nl100"] #' #' @source \url{https://www.povertyindex.org} #' # ################################################################################ -"ppiKHM2015_wb" +"ppiTLS2013" + ################################################################################ # -#' Poverty Probability Index (PPI) lookup table for Cambodia +#' Poverty Probability Index (PPI) lookup table for Uganda #' -#' @format A data frame with 9 columns and 101 rows: +#' @format A data frame with 13 columns and 101 rows: #' \describe{ #' \item{\code{score}}{PPI score} #' \item{\code{nl100}}{National poverty line (100\%)} #' \item{\code{nl150}}{National poverty line (150\%)} #' \item{\code{nl200}}{National poverty line (200\%)} -#' \item{\code{median}}{Median poverty line} +#' \item{\code{half100}}{Poorest half below 100\% national} #' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} #' \item{\code{ppp200}}{Below $2.00 per day purchasing power parity (2005)} #' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} +#' \item{\code{ppp400}}{Below $4.00 per day purchasing power parity (2005)} #' \item{\code{ppp500}}{Below $5.00 per day purchasing power parity (2005)} +#' \item{\code{ppp844}}{Below $8.44 per day purchasing power parity (2005)} +#' \item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)} +#' \item{\code{ppp310}}{Below $3.10 per day purchasing power parity (2011)} #' } #' #' @examples -#' # Access Cambodia PPI table -#' ppiKHM2015_gov +#' # Access Uganda PPI table +#' ppiUGA2015 #' #' # Given a specific PPI score (from 0 - 100), get the row of poverty #' # probabilities from PPI table it corresponds to #' ppiScore <- 50 -#' ppiKHM2015_gov[ppiKHM2015_gov$score == ppiScore, ] +#' ppiUGA2015[ppiUGA2015$score == ppiScore, ] #' #' # Use subset() function to get the row of poverty probabilities corresponding #' # to specific PPI score #' ppiScore <- 50 -#' subset(ppiKHM2015_gov, score == ppiScore) +#' subset(ppiUGA2015, score == ppiScore) #' #' # Given a specific PPI score (from 0 - 100), get a poverty probability #' # based on a specific poverty definition. In this example, the national #' # poverty line definition #' ppiScore <- 50 -#' ppiKHM2015_gov[ppiKHM2015_gov$score == ppiScore, "nl100"] +#' ppiUGA2015[ppiUGA2015$score == ppiScore, "nl100"] #' #' @source \url{https://www.povertyindex.org} #' # ################################################################################ -"ppiKHM2015_gov" +"ppiUGA2015" ################################################################################ # -#' Poverty Probability Index (PPI) lookup table for Cambodia +#' Poverty Probability Index (PPI) lookup table for Yemen #' -#' @format A data frame with 6 columns and 101 rows: +#' @format A data frame with 8 columns and 101 rows: #' \describe{ #' \item{\code{score}}{PPI score} #' \item{\code{nl100}}{National poverty line (100\%)} -#' \item{\code{nl150}}{National poverty line (150\%)} -#' \item{\code{nl200}}{National poverty line (200\%)} -#' \item{\code{ppp125}}{Below $1.25 per day purchasing power poverty (2005)} -#' \item{\code{ppp250}}{Below $2.50 per day purchasing power poverty (2005)} +#' \item{\code{nlFood}}{Food poverty line} +#' \item{\code{extreme}}{USAID extreme poverty} +#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} +#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} +#' \item{\code{ppp300}}{Below $3.00 per day purchasing power parity (2005)} +#' \item{\code{ppp400}}{Below $4.00 per day purchasing power parity (2005)} #' } #' #' @examples -#' # Access Cambodia PPI table -#' ppiKHM2015 +#' # Access Yemen PPI table +#' ppiYEM2009 #' #' # Given a specific PPI score (from 0 - 100), get the row of poverty #' # probabilities from PPI table it corresponds to #' ppiScore <- 50 -#' ppiKHM2015[ppiKHM2015$score == ppiScore, ] +#' ppiYEM2009[ppiYEM2009$score == ppiScore, ] #' #' # Use subset() function to get the row of poverty probabilities corresponding #' # to specific PPI score #' ppiScore <- 50 -#' subset(ppiKHM2015, score == ppiScore) +#' subset(ppiYEM2009, score == ppiScore) #' #' # Given a specific PPI score (from 0 - 100), get a poverty probability #' # based on a specific poverty definition. In this example, the national #' # poverty line definition #' ppiScore <- 50 -#' ppiKHM2015[ppiKHM2015$score == ppiScore, "nl100"] +#' ppiYEM2009[ppiYEM2009$score == ppiScore, "nl100"] #' #' @source \url{https://www.povertyindex.org} #' # ################################################################################ -"ppiKHM2015" +"ppiYEM2009" ################################################################################ @@ -3207,65 +2310,6 @@ "ppiPER2018" -################################################################################ -# -#' Poverty Probability Index (PPI) lookup table for Philippines -#' -#' @format A data frame with 18 columns and 101 rows: -#' \describe{ -#' \item{\code{score}}{PPI score} -#' \item{\code{nl100}}{National poverty line (100\%)} -#' \item{\code{food}}{Food poverty line} -#' \item{\code{nl150}}{National poverty line (150\%)} -#' \item{\code{nl200}}{National poverty line (200\%)} -#' \item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)} -#' \item{\code{ppp320}}{Below $3.20 per day purchasing power parity (2011)} -#' \item{\code{ppp550}}{Below $5.50 per day purchasing power parity (2011)} -#' \item{\code{ppp800}}{Below $8.00 per day purchasing power parity (2011)} -#' \item{\code{ppp1100}}{Below $11.00 per day purchasing power parity (2011)} -#' \item{\code{ppp1500}}{Below $15.00 per day purchasing power parity (2011)} -#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} -#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} -#' \item{\code{ppp500}}{Below $5.00 per day purchasing power parity (2005)} -#' \item{\code{percentile20}}{Below 20th percentile poverty line} -#' \item{\code{percentile40}}{Below 40th percentile poverty line} -#' \item{\code{percentile60}}{Below 60th percentile poverty line} -#' \item{\code{percentile80}}{Below 80th percentile poverty line} -#' } -#' @source \url{https://www.povertyindex.org} -#' -# -################################################################################ -"ppiPHL2018" - -################################################################################ -# -#' Poverty Probability Index (PPI) lookup table for Togo -#' -#' @format A data frame with 15 columns and 101 rows: -#' \describe{ -#' \item{\code{score}}{PPI score} -#' \item{\code{nl100}}{National poverty line (100\%)} -#' \item{\code{nl150}}{National poverty line (150\%)} -#' \item{\code{nl200}}{National poverty line (200\%)} -#' \item{\code{ppp100}}{Below $1.00 per day purchasing power parity (2011)} -#' \item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)} -#' \item{\code{ppp320}}{Below $3.20 per day purchasing power parity (2011)} -#' \item{\code{ppp550}}{Below $5.50 per day purchasing power parity (2011)} -#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} -#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} -#' \item{\code{ppp500}}{Below $5.00 per day purchasing power parity (2005)} -#' \item{\code{percentile20}}{Below 20th percentile poverty line} -#' \item{\code{percentile40}}{Below 40th percentile poverty line} -#' \item{\code{percentile60}}{Below 60th percentile poverty line} -#' \item{\code{percentile80}}{Below 80th percentile poverty line} -#' } -#' @source \url{https://www.povertyindex.org} -#' -# -################################################################################ -"ppiTGO2018" - ################################################################################ # #' Poverty Probability Index (PPI) lookup table for Colombia @@ -3329,67 +2373,14 @@ #' \item{\code{ppp320}}{Below $3.20 per day purchasing power parity (2011)} #' \item{\code{ppp550}}{Below $5.50 per day purchasing power parity (2011)} #' \item{\code{ppp800}}{Below $8.00 per day purchasing power parity (2011)} -#' \item{\code{ppp1100}}{Below $15.00 per day purchasing power parity (2011)} -#' \item{\code{ppp1500}}{Below $21.70 per day purchasing power parity (2011)} -#' \item{\code{ppp2170}}{Below $1.25 per day purchasing power parity (2005)} -#' \item{\code{ppp125}}{Below $2.50 per day purchasing power parity (2005)} -#' \item{\code{ppp250}}{Below $5.00 per day purchasing power parity (2005)} -#' \item{\code{ppp500}}{Below 20th percentile poverty line} -#' \item{\code{percentile20}}{Below 40th percentile poverty line} -#' \item{\code{percentile40}}{Below 60th percentile poverty line} -#' \item{\code{percentile60}}{Below 80th percentile poverty line} -#' \item{\code{percentile80}}{NA} -#' } -#' @source \url{https://www.povertyindex.org} -#' -# -################################################################################ -"ppiCOL2018" - - -################################################################################ -# -#' Poverty Probability Index (PPI) lookup table for Burkina Faso -#' -#' @format A data frame with 8 columns and 101 rows: -#' \describe{ -#' \item{\code{score}}{PPI score} -#' \item{\code{nl100}}{National poverty line (100\%)} -#' \item{\code{nl50}}{National poverty line (50\%)} -#' \item{\code{nl75}}{National poverty line (75\%)} -#' \item{\code{nl150}}{National poverty line (150\%)} -#' \item{\code{extreme}}{USAID extreme poverty} +#' \item{\code{ppp1100}}{Below $11.00 per day purchasing power parity (2011)} +#' \item{\code{ppp1500}}{Below $15.00 per day purchasing power parity (2011)} +#' \item{\code{ppp2170}}{Below $21.70 per day purchasing power parity (2011)} #' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} #' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} -#' } -#' @source \url{https://www.povertyindex.org} -#' -# -################################################################################ -"ppiBFA2011" - -################################################################################ -# -#' Poverty Probability Index (PPI) lookup table for Burkina Faso -#' -#' @format A data frame with 18 columns and 101 rows: -#' \describe{ -#' \item{\code{score}}{PPI score} -#' \item{\code{food}}{Food poverty line} -#' \item{\code{nl100}}{National poverty line (100\%)} -#' \item{\code{nl150}}{National poverty line (150\%)} -#' \item{\code{nl200}}{National poverty line (200\%)} -#' \item{\code{ppp125}}{Below $1.00 per day purchasing power parity (2005)} -#' \item{\code{ppp200}}{Below $1.25 per day purchasing power parity (2005)} -#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} #' \item{\code{ppp500}}{Below $5.00 per day purchasing power parity (2005)} -#' \item{\code{ppp844}}{Below $8.44 per day purchasing power parity (2005)} -#' \item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)} -#' \item{\code{ppp310}}{Below $3.10 per day purchasing power parity (2011)} -#' \item{\code{median}}{Median poverty line} #' \item{\code{percentile20}}{Below 20th percentile poverty line} #' \item{\code{percentile40}}{Below 40th percentile poverty line} -#' \item{\code{percentile50}}{Below 50th percentile poverty line} #' \item{\code{percentile60}}{Below 60th percentile poverty line} #' \item{\code{percentile80}}{Below 80th percentile poverty line} #' } @@ -3397,7 +2388,7 @@ #' # ################################################################################ -"ppiBFA2014" +"ppiCOL2018" ################################################################################ @@ -3809,110 +2800,6 @@ "ppiRWA2019" -################################################################################ -# -#' Poverty Probability Index (PPI) lookup table for Malawi -#' -#' @format A data frame with 16 columns and 100 rows: -#' \describe{ -#' \item{\code{score}}{PPI score} -#' \item{\code{nl100}}{National poverty line (100\%)} -#' \item{\code{extreme}}{Extreme poverty line} -#' \item{\code{nl150}}{National poverty line (150\%)} -#' \item{\code{nl200}}{National poverty line (200\%)} -#' \item{\code{ppp100}}{Below $1.00 per day purchasing power parity (2011)} -#' \item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)} -#' \item{\code{ppp320}}{Below $3.20 per day purchasing power parity (2011)} -#' \item{\code{ppp550}}{Below $5.50 per day purchasing power parity (2011)} -#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} -#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} -#' \item{\code{ppp500}}{Below $5.00 per day purchasing power parity (2005)} -#' \item{\code{percentile20}}{Below 20th percentile poverty line} -#' \item{\code{percentile40}}{Below 40th percentile poverty line} -#' \item{\code{percentile60}}{Below 50th percentile poverty line} -#' \item{\code{percentile80}}{Below 60th percentile poverty line} -#' } -#' -#' @examples -#' # Access Malawi PPI table -#' ppiMWI2020 -#' -#' # Given a specific PPI score (from 0 - 100), get the row of poverty -#' # probabilities from PPI table it corresponds to -#' ppiScore <- 50 -#' ppiMWI2020[ppiMWI2020$score == ppiScore, ] -#' -#' # Use subset() function to get the row of poverty probabilities corresponding -#' # to specific PPI score -#' ppiScore <- 50 -#' subset(ppiMWI2020, score == ppiScore) -#' -#' # Given a specific PPI score (from 0 - 100), get a poverty probability -#' # based on a specific poverty definition. In this example, the USAID -#' # extreme poverty definition -#' ppiScore <- 50 -#' ppiMWI2020[ppiMWI2020$score == ppiScore, "extreme"] -#' -#' @source \url{https://www.povertyindex.org} -#' -# -################################################################################ -"ppiMWI2020" - -################################################################################ -# -#' Poverty Probability Index (PPI) lookup table for Indonesia -#' -#' @format A data frame with 20 columns and 100 rows: -#' \describe{ -#' \item{\code{score}}{PPI score} -#' \item{\code{nl100}}{National poverty line (100\%)} -#' \item{\code{extreme}}{Extreme poverty line} -#' \item{\code{nl150}}{National poverty line (150\%)} -#' \item{\code{nl200}}{National poverty line (200\%)} -#' \item{\code{ppp100}}{Below $1.00 per day purchasing power parity (2011)} -#' \item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)} -#' \item{\code{ppp320}}{Below $3.20 per day purchasing power parity (2011)} -#' \item{\code{ppp550}}{Below $5.50 per day purchasing power parity (2011)} -#' \item{\code{ppp800}}{Below $8.00 per day purchasing power parity (2011)} -#' \item{\code{ppp1100}}{Below $11.00 per day purchasing power parity (2011)} -#' \item{\code{ppp1500}}{Below $15.00 per day purchasing power parity (2011)} -#' \item{\code{ppp2170}}{Below $21.70 per day purchasing power parity (2011)} -#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} -#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} -#' \item{\code{ppp500}}{Below $5.00 per day purchasing power parity (2005)} -#' \item{\code{percentile20}}{Below 20th percentile poverty line} -#' \item{\code{percentile40}}{Below 40th percentile poverty line} -#' \item{\code{percentile60}}{Below 50th percentile poverty line} -#' \item{\code{percentile80}}{Below 60th percentile poverty line} -#' } -#' -#' @examples -#' # Access Indonesia PPI table -#' ppiIDN2020 -#' -#' # Given a specific PPI score (from 0 - 100), get the row of poverty -#' # probabilities from PPI table it corresponds to -#' ppiScore <- 50 -#' ppiIDN2020[ppiIDN2020$score == ppiScore, ] -#' -#' # Use subset() function to get the row of poverty probabilities corresponding -#' # to specific PPI score -#' ppiScore <- 50 -#' subset(ppiIDN2020, score == ppiScore) -#' -#' # Given a specific PPI score (from 0 - 100), get a poverty probability -#' # based on a specific poverty definition. In this example, the USAID -#' # extreme poverty definition -#' ppiScore <- 50 -#' ppiIDN2020[ppiIDN2020$score == ppiScore, "extreme"] -#' -#' @source \url{https://www.povertyindex.org} -#' -# -################################################################################ -"ppiIDN2020" - ################################################################################ # #' Poverty Probability Index (PPI) lookup table for Tanzania 2022 diff --git a/R/sysdata.rda b/R/sysdata.rda index 87dcf0e6..d140ef9a 100644 Binary files a/R/sysdata.rda and b/R/sysdata.rda differ diff --git a/README.Rmd b/README.Rmd index 10d27519..18410f00 100644 --- a/README.Rmd +++ b/README.Rmd @@ -67,7 +67,7 @@ These three components are joined together without any spaces or gaps. Some country lookup tables may have additional components to their name which are added after the year separated with an underscore. These usually signify that a lookup table released on a particular year has a subset table in which the poverty likelihoods for a given `PPI` score are reported based on a different poverty definition or cut-off. This additional component to the table name is usually a character value or alphanumeric and is usually country-specific. To know more about what this additional component to some `PPI` tables refer to, read the index table below of the `PPI` tables available in this package. -Following are the available PPI country tables from the `ppitables` package. This is updated as at 21 September 2020 using information from the PPI [site](https://www.povertyindex.org). +Following are the available PPI country tables from the `ppitables` package. This is updated as at 11 April 2023 using information from the PPI [site](https://www.povertyindex.org). ### List of PPI country tables @@ -84,6 +84,14 @@ Following are the available PPI country tables from the `ppitables` package. Thi +-----+-----------------+-----------------------------------------------------+-----------------+ | 3. | `ppiBEN2012` | PPI for Benin based on 2010 data | 2012 | +-----+-----------------+-----------------------------------------------------+-----------------+ +| | `ppiBEN2022_11q`| PPI for Benin based on 2018/9 Enquete Harmonisée sur| 2022 | +| | | le Conditions de Vie des Ménages (EHCVM) and using | | +| | | an 11 question score card | | ++-----+-----------------+-----------------------------------------------------+-----------------+ +| | `ppiBEN2022_6q` | PPI for Benin based on 2018/9 Enquete Harmonisée sur| 2022 | +| | | le Conditions de Vie des Ménages (EHCVM) and using | | +| | | a 6 question score card | | ++-----+-----------------+-----------------------------------------------------+-----------------+ | 4. | `ppiBFA2011` | PPI for Burkina Faso using Burkina Faso's 2003 | 2011 | | | | Household Living Standards Survey | | +-----+-----------------+-----------------------------------------------------+-----------------+ @@ -94,12 +102,19 @@ Following are the available PPI country tables from the `ppitables` package. Thi | | | Enquête Multisectorielle Continue (EMC) based on | | | | | IPA's new approach to PPI calculation | | +-----+-----------------+-----------------------------------------------------+-----------------+ +| | `ppiBFA2023` | PPI for Burkina FASO based on data from 2018 Enquête| 2023 | +| | | Harmonisée sur le Conditions de Vie des Ménages | | +| | | (EHCVM) | | ++-----+-----------------+-----------------------------------------------------+-----------------+ | 5. | `ppiBGD2013` | PPI for Bangladesh using Bangaldesh's 2010 HIES | 2013 | | | | Survey | | +-----+-----------------+-----------------------------------------------------+-----------------+ | 6. | `ppiBOL2015` | PPI for Bolivia using Bolivia’s 2013 Household | 2015 | | | | Survey | | +-----+-----------------+-----------------------------------------------------+-----------------+ +| | `ppiBOL2023` | PPI for Bolivia using data from Encuesta de Hogares | 2023 | +| | | 2020 | | ++-----+-----------------+-----------------------------------------------------+-----------------+ | 7. | `ppiBRA2010` | PPI for Brazil based on the 2008 PNAD | 2010 | +-----+-----------------+-----------------------------------------------------+-----------------+ | 8. | `ppiCIV2013` | PPI for Ivory Coast using the Ivory Coast's 2008 | 2013 | @@ -132,11 +147,18 @@ Following are the available PPI country tables from the `ppitables` package. Thi | 12. | `ppiECU2015` | PPI for Ecuador based on the 2013 Living Standards | 2015 | | | | Survey | | +-----+-----------------+-----------------------------------------------------+-----------------+ +| | `ppiECU2022` | PPI for Ecuador based on data from the Encuesta | 2022 | +| | | Nacional de Empleo, Desempleo y Subempleo (ENEMDU) | | +| | | from 2019, 2020 and 2021 | | ++-----+-----------------+-----------------------------------------------------+-----------------+ | 13. | `ppiEGY2010` | PPI for Egypt based on the 2004/5 HIECS | 2010 | +-----+-----------------+-----------------------------------------------------+-----------------+ | 14. | `ppiETH2016` | PPI for Ethiopia based on Ethiopia’s 2010/11 | 2016 | | | | Household Consumption and Expenditure Survey | | +-----+-----------------+-----------------------------------------------------+-----------------+ +| | `ppiETH2023` | PPI for Ethiopia based on data from the | 2023 | +| | | Socioeconomic Survey 2018/2019" | | ++-----+-----------------+-----------------------------------------------------+-----------------+ | 15. | `ppiFJI2014` | PPI for Fiji based on Fiji’s 2008/9 Household Income| 2014 | | | | and Expenditure Survey | | +-----+-----------------+-----------------------------------------------------+-----------------+ @@ -158,8 +180,15 @@ Following are the available PPI country tables from the `ppitables` package. Thi | 17. | `ppiGTM2016` | PPI for Guatemala based on Guatemala’s 2014 | 2016 | | | | Household Living Standards Survey | | +-----+-----------------+-----------------------------------------------------+-----------------+ +| | `ppiGTM2023` | PPI for Guatemala based on data from Encuesta | 2023 | +| | | Nacional de Empleo e Ingresos of 2021 | | ++-----+-----------------+-----------------------------------------------------+-----------------+ | 18. | `ppiHND2010` | PPI for Honduras based on the 2007 EPHPM | 2010 | +-----+-----------------+-----------------------------------------------------+-----------------+ +| | `ppiHND2023` | PPI for Honduras based on data from the Encuesta | 2023 | +| | | Permanente de Hogares de Propósitos Múltiples | | +| | | (EPHPM) 2019 | | ++-----+-----------------+-----------------------------------------------------+-----------------+ | 19. | `ppiHTI2016` | PPI for Haiti based on Haiti’s 2012 Post-Earthquake | 2016 | | | | Living Standards Survey | | +-----+-----------------+-----------------------------------------------------+-----------------+ @@ -172,6 +201,9 @@ Following are the available PPI country tables from the `ppitables` package. Thi | | `ppiIDN2020` | PPI for Indonesia based on data from Indonesia's | 2020 | | | | SUSENA 2016 | | +-----+-----------------+-----------------------------------------------------+-----------------+ +| | `ppiIDN2023` | PPI for Indonesia based on data from the 2022 | 2023 | +| | | National Socioeconomic Survey (SUSENAS) | | ++-----+-----------------+-----------------------------------------------------+-----------------+ | 21. | `ppiIND2016_r59`| PPI for India using India’s 2011/12 Socio-Economic | 2016 | | | | using the R59 legacy poverty lines using MRP | | | | | consumption | | @@ -212,6 +244,9 @@ Following are the available PPI country tables from the `ppitables` package. Thi | | | Socio-Economic Survey based using World Bank | | | | | definition poverty lines | | +-----+-----------------+-----------------------------------------------------+-----------------+ +| | `ppiKHM2023` | PPI for Cambodia using data from 2020 Living | 2023 | +| | | Standards Measurement Study - Plus (LSMS+) | | ++-----+-----------------+-----------------------------------------------------+-----------------+ | 26. | `ppiLKA2016` | PPI for Sri Lanka using Sri Lanka’s 2012/13 | 2016 | | | | Household Income and Expenditure Survey | | +-----+-----------------+-----------------------------------------------------+-----------------+ @@ -261,6 +296,9 @@ Following are the available PPI country tables from the `ppitables` package. Thi | | | Integrated Household Survey (IHS4) using new PPI | | | | | definitions | | +-----+-----------------+-----------------------------------------------------+-----------------+ +| | `ppiMWI2023` | PPI for Malawi based on data from the Fifth | 2023 | +| | | Integrated Household Survey 2019 | | ++-----+-----------------+-----------------------------------------------------+-----------------+ | 35. | `ppiNAM2013` | PPI for Namibia based on Namibia’s 2009/10 Household| 2013 | | | | Income and Expenditure Survey | | +-----+-----------------+-----------------------------------------------------+-----------------+ @@ -293,16 +331,22 @@ Following are the available PPI country tables from the `ppitables` package. Thi | | `ppiPHL2018` | PPI for the Philippines based on Philippines' 2015 | 2018 | | | | Family Income and Expenditure Survey (FIES) | | +-----+-----------------+-----------------------------------------------------+-----------------+ -| 43. | `ppiPRY2012` | PPI for Paraguay based on Paraguay’s 2011 EPH | 2012 | +| | `ppiPHL2023` | PPI for the Philippines based on data from the 2018 | 2023 | +| | | Family Income and Expenditure Survey (FIES) | | ++-----+-----------------+-----------------------------------------------------+-----------------+ +| 43. | `ppiPNG2023` | PPI for Papua New Guinea based on data from | 2023 | +| | | 2016-2018 Demographic and Health Survey (DHS) | | ++-----+-----------------+-----------------------------------------------------+-----------------+ +| 44. | `ppiPRY2012` | PPI for Paraguay based on Paraguay’s 2011 EPH | 2012 | +-----+-----------------+-----------------------------------------------------+-----------------+ -| 44. | `ppiPSE2014` | PPI for Palestine based on Palestine's 2011 | 2014 | +| 45. | `ppiPSE2014` | PPI for Palestine based on Palestine's 2011 | 2014 | | | | Expenditure and Consumption Survey | | +-----+-----------------+-----------------------------------------------------+-----------------+ -| 45. | `ppiROU2009` | PPI for Romania based on the 2007 HBS | 2009 | +| 46. | `ppiROU2009` | PPI for Romania based on the 2007 HBS | 2009 | +-----+-----------------+-----------------------------------------------------+-----------------+ -| 46. | `ppiRUS2010` | PPI for Russia based on 2007 HBS | 2010 | +| 47. | `ppiRUS2010` | PPI for Russia based on 2007 HBS | 2010 | +-----+-----------------+-----------------------------------------------------+-----------------+ -| 47. | `ppiRWA2016` | PPI for Rwanda based on Rwanda’s 2010/11 Integrated | 2016 | +| 48. | `ppiRWA2016` | PPI for Rwanda based on Rwanda’s 2010/11 Integrated | 2016 | | | | Household Living Standards Survey | | +-----+-----------------+-----------------------------------------------------+-----------------+ | | `ppiRWA2019` | PPI for Rwanda based on Rwanda's 2016/2017 | 2019 | @@ -311,47 +355,60 @@ Following are the available PPI country tables from the `ppitables` package. Thi | | | Statistics of Rwanda (NISR) and the Ministry of | | | | | Finance and Planning | | +-----+-----------------+-----------------------------------------------------+-----------------+ -| 48. | `ppiSEN2009` | PPI for Senegal based on Senegal's 2005/6 Enquête de| 2009 | +| 49. | `ppiSEN2009` | PPI for Senegal based on Senegal's 2005/6 Enquête de| 2009 | | | | Suivi de la Pauvreté au Sénégal (ESPS) | | +-----+-----------------+-----------------------------------------------------+-----------------+ | | `ppiSEN2018` | PPI for Senegal based on Senegal's 2011 Enquête de | 2018 | | | | Suivi de la Pauvreté au Sénégal (ESPS) | | +-----+-----------------+-----------------------------------------------------+-----------------+ -| 49. | `ppiSLE2011` | PPI for Sierra Leone based on Sierra Leone's 2003/4 | 2011 | +| 50. | `ppiSLE2011` | PPI for Sierra Leone based on Sierra Leone's 2003/4 | 2011 | | | | HIS | | +-----+-----------------+-----------------------------------------------------+-----------------+ -| 50. | `ppiSLV2010` | PPI for El Salvador based on the 2008 EHPM | 2010 | +| 51. | `ppiSLV2010` | PPI for El Salvador based on the 2008 EHPM | 2010 | +-----+-----------------+-----------------------------------------------------+-----------------+ -| 51. | `ppiSYR2010` | PPI for Syria based on Syria's 2006/7 Household | 2010 | +| | `ppiSLV2021` | PPI for El Salvador based on data from 2019 Encuesta| 2021 | +| | | de Hogares de Propósitos Múltiples | | ++-----+-----------------+-----------------------------------------------------+-----------------+ +| 52. | `ppiSYR2010` | PPI for Syria based on Syria's 2006/7 Household | 2010 | | | | Income and Expenditure Survey | | +-----+-----------------+-----------------------------------------------------+-----------------+ -| 52. | `ppiTJK2015` | PPI for Tajikistan based on 2007 data | 2015 | +| 53. | `ppiTJK2015` | PPI for Tajikistan based on 2007 data | 2015 | +-----+-----------------+-----------------------------------------------------+-----------------+ -| 53. | `ppiTLS2013` | PPI for Timor Leste based on Timor-Leste’s 2007 | 2013 | +| 54. | `ppiTLS2013` | PPI for Timor Leste based on Timor-Leste’s 2007 | 2013 | | | | Survey of Living Standards | | +-----+-----------------+-----------------------------------------------------+-----------------+ -| 54. | `ppiTZA2016` | PPI for Tanzania based on Tanzania’s 2011/12 | 2016 | +| 55. | `ppiTZA2016` | PPI for Tanzania based on Tanzania’s 2011/12 | 2016 | | | | Household Budget Survey | | +-----+-----------------+-----------------------------------------------------+-----------------+ | | `ppiTZA2022` | PPI for Tanzania based on Tanzania's 2017/2018 | 2022 | | | | Household Budget Survey | | +-----+-----------------+-----------------------------------------------------+-----------------+ -| 55. | `ppiTGO2018` | PPI for Togo based on Togo’s 2015 Questionnaire des | 2018 | +| 56. | `ppiTGO2018` | PPI for Togo based on Togo’s 2015 Questionnaire des | 2018 | | | | Indicateurs de Base du Bien-être (QUIBB) | | +-----+-----------------+-----------------------------------------------------+-----------------+ -| 56. | `ppiUGA2015` | PPI for Uganda based on Uganda's 2012/13 National | 2015 | +| | `ppiTGO2023` | PPI for Togo based on data from the 2018 Enquête | 2023 | +| | | Harmonisée sur le Conditions de Vie des Ménages | | +| | | (EHCVM) | | ++-----+-----------------+-----------------------------------------------------+-----------------+ +| 57. | `ppiUGA2015` | PPI for Uganda based on Uganda's 2012/13 National | 2015 | | | | Household Survey | | +-----+-----------------+-----------------------------------------------------+-----------------+ | | `ppiUGA2022` | PPI for Uganda based on Uganda's 2020 National | 2022 | | | | Household Survey | | +-----+-----------------+-----------------------------------------------------+-----------------+ -| 57. | `ppiVNM2009` | PPI for Vietnam based on the 2006 VHLSS | 2009 | +| 58. | `ppiVNM2009` | PPI for Vietnam based on the 2006 VHLSS | 2009 | ++-----+-----------------+-----------------------------------------------------+-----------------+ +| | `ppiVNM2023` | PPI for Vietnam based on data from the 2021 Multiple| 2023 | +| | | Indicator Cluster Survey | | ++-----+-----------------+-----------------------------------------------------+-----------------+ +| 59. | `ppiYEM2009` | PPI for Yemen based on 2005/06 HBS | 2009 | +-----+-----------------+-----------------------------------------------------+-----------------+ -| 58. | `ppiYEM2009` | PPI for Yemen based on 2005/06 HBS | 2009 | +| 60. | `ppiZAF2009` | PPI for South Africa based on the 2005/6 IES | 2009 | +-----+-----------------+-----------------------------------------------------+-----------------+ -| 59. | `ppiZAF2009` | PPI for South Africa based on the 2005/6 IES | 2009 | +| | `ppiZAF2023` | PPI for South Africa based on data from the 2019 | 2023 | +| | | General Household Survey | | +-----+-----------------+-----------------------------------------------------+-----------------+ -| 60. | `ppiZMB2013_got`| PPI for Zambia based on Zambia's 2010 Living | 2013 | +| 61. | `ppiZMB2013_got`| PPI for Zambia based on Zambia's 2010 Living | 2013 | | | | Conditions Monitoring Survey (LCMS) using Göttingen | | | | | poverty definitions | | +-----+-----------------+-----------------------------------------------------+-----------------+ diff --git a/README.md b/README.md index 90baaa78..6b906ba5 100644 --- a/README.md +++ b/README.md @@ -83,8 +83,8 @@ this additional component to some `PPI` tables refer to, read the index table below of the `PPI` tables available in this package. Following are the available PPI country tables from the `ppitables` -package. This is updated as at 21 September 2020 using information from -the PPI [site](https://www.povertyindex.org). +package. This is updated as at 11 April 2023 using information from the +PPI [site](https://www.povertyindex.org). ### List of PPI country tables @@ -131,6 +131,20 @@ Survey 2012 + +ppiBEN2022_11q +PPI for Benin based on 2018/9 Enquete Harmonisée sur le Conditions +de Vie des Ménages (EHCVM) and using an 11 question score card +2022 + + + +ppiBEN2022_6q +PPI for Benin based on 2018/9 Enquete Harmonisée sur le Conditions +de Vie des Ménages (EHCVM) and using a 6 question score card +2022 + +
@@ -155,6 +169,13 @@ calculation 2017 + +ppiBFA2023 +PPI for Burkina FASO based on data from 2018 Enquête Harmonisée sur +le Conditions de Vie des Ménages (EHCVM) +2023 + +
@@ -162,7 +183,7 @@ calculation PPI for Bangladesh using Bangaldesh’s 2010 HIES Survey 2013 - +
@@ -170,6 +191,12 @@ calculation PPI for Bolivia using Bolivia’s 2013 Household Survey 2015 + + +ppiBOL2023 +PPI for Bolivia using data from Encuesta de Hogares 2020 +2023 +
  1. @@ -250,6 +277,13 @@ Fuerza de Trabajo (ENFT) 2015 + +ppiECU2022 +PPI for Ecuador based on data from the Encuesta Nacional de Empleo, +Desempleo y Subempleo (ENEMDU) from 2019, 2020 and 2021 +2022 + +
    @@ -257,7 +291,7 @@ Fuerza de Trabajo (ENFT) PPI for Egypt based on the 2004/5 HIECS 2010 - +
    @@ -266,6 +300,13 @@ Fuerza de Trabajo (ENFT) and Expenditure Survey 2016 + + +ppiETH2023 +PPI for Ethiopia based on data from the Socioeconomic Survey +2018/2019” +2023 +
    1. @@ -316,6 +357,13 @@ Standards Survey 2016 + +ppiGTM2023 +PPI for Guatemala based on data from Encuesta Nacional de Empleo e +Ingresos of 2021 +2023 + +
      @@ -323,6 +371,13 @@ Standards Survey PPI for Honduras based on the 2007 EPHPM 2010 + + +ppiHND2023 +PPI for Honduras based on data from the Encuesta Permanente de +Hogares de Propósitos Múltiples (EPHPM) 2019 +2023 +
      1. @@ -355,6 +410,13 @@ poverty lines 2020 + +ppiIDN2023 +PPI for Indonesia based on data from the 2022 National Socioeconomic +Survey (SUSENAS) +2023 + +
        @@ -363,28 +425,28 @@ poverty lines legacy poverty lines using MRP consumption 2016 - + ppiIND2016_r62 PPI for India using India’s 2011/12 Socio-Economic using the R59 legacy poverty lines using MRP consumption 2016 - + ppiIND2016_r66 PPI for India using India’s 2011/12 Socio-Economic using the R66 legacy poverty lines using MRP consumption 2016 - + ppiIND2016_r68 PPI for India using India’s 2011/12 Socio-Economic using the R68 new poverty lines using MRP consumption 2016 - +
        @@ -393,7 +455,7 @@ poverty lines using MRP consumption Survey 2010 - +
        @@ -402,14 +464,14 @@ Survey Survey 2011 - + ppiKEN2018 PPI for Kenya using Kenya’s 2015 Integrated Household Budget Survey 2018 - +
        @@ -418,7 +480,7 @@ Survey Survey 2015 - +
        @@ -427,20 +489,27 @@ Survey using legacy poverty lines 2015 - + ppiKHM2015_gov PPI for Cambodia using Cambodia’s 2011 Socio-Economic Survey based using government definition poverty lines 2015 - + ppiKHM2015_wb PPI for Cambodia using Cambodia’s 2011 Socio-Economic Survey based using World Bank definition poverty lines 2015 + + +ppiKHM2023 +PPI for Cambodia using data from 2020 Living Standards Measurement +Study - Plus (LSMS+) +2023 +
        1. @@ -563,6 +632,13 @@ Household Survey (IHS4) using new PPI definitions 2020 + +ppiMWI2023 +PPI for Malawi based on data from the Fifth Integrated Household +Survey 2019 +2023 + +
          @@ -571,7 +647,7 @@ Household Survey (IHS4) using new PPI definitions Expenditure Survey 2013 - +
          @@ -580,7 +656,7 @@ Expenditure Survey Expenditure Survey 2013 - +
          @@ -589,7 +665,7 @@ Expenditure Survey Survey 2015 - +
          @@ -598,7 +674,7 @@ Survey Measurement Survey 2013 - +
          @@ -606,13 +682,13 @@ Measurement Survey PPI for Nepal using legacy poverty definition lines 2013 - + ppiNPL2013_a PPI for Nepal using new poverty definition lines 2013 - +
          @@ -621,7 +697,7 @@ Measurement Survey Measurement Survey 2009 - +
          @@ -629,14 +705,14 @@ Measurement Survey PPI for Peru based on Peru’s 2010 National Household Survey 2012 - + ppiPER2018 PPI for Peru based on Peru’s 2016 Encuesta Nacional de Hogares sobre Condiciones de Vida y Pobreza (ENAHO) 2018 - +
          @@ -644,23 +720,39 @@ Condiciones de Vida y Pobreza (ENAHO) PPI for the Philippines based on Philippines’ 2009 FIES/LFS. 2014 - + ppiPHL2018 PPI for the Philippines based on Philippines’ 2015 Family Income and Expenditure Survey (FIES) 2018 + + +ppiPHL2023 +PPI for the Philippines based on data from the 2018 Family Income +and Expenditure Survey (FIES) +2023 +
          +ppiPNG2023 +PPI for Papua New Guinea based on data from 2016-2018 Demographic +and Health Survey (DHS) +2023 + + +
            +
          1. +
          ppiPRY2012 PPI for Paraguay based on Paraguay’s 2011 EPH 2012 - -
            + +
            ppiPSE2014 @@ -668,24 +760,24 @@ Expenditure Survey (FIES) Consumption Survey 2014 - -
              + +
              ppiROU2009 PPI for Romania based on the 2007 HBS 2009 - -
                + +
                ppiRUS2010 PPI for Russia based on 2007 HBS 2010 - -
                  + +
                  ppiRWA2016 @@ -693,7 +785,7 @@ Consumption Survey Standards Survey 2016 - + ppiRWA2019 PPI for Rwanda based on Rwanda’s 2016/2017 Integrated Household @@ -702,8 +794,8 @@ Statistics of Rwanda (NISR) and the Ministry of Finance and Planning 2019 - -
                    + +
                    ppiSEN2009 @@ -711,31 +803,38 @@ Planning Pauvreté au Sénégal (ESPS) 2009 - + ppiSEN2018 PPI for Senegal based on Senegal’s 2011 Enquête de Suivi de la Pauvreté au Sénégal (ESPS) 2018 - -
                      + +
                      ppiSLE2011 PPI for Sierra Leone based on Sierra Leone’s 2003/4 HIS 2011 - -
                        + +
                        ppiSLV2010 PPI for El Salvador based on the 2008 EHPM 2010 + + +ppiSLV2021 +PPI for El Salvador based on data from 2019 Encuesta de Hogares de +Propósitos Múltiples +2021 + -
                          +
                          ppiSYR2010 @@ -744,7 +843,7 @@ Expenditure Survey 2010 -
                            +
                            ppiTJK2015 @@ -752,7 +851,7 @@ Expenditure Survey 2015 -
                              +
                              ppiTLS2013 @@ -761,7 +860,7 @@ Standards 2013 -
                                +
                                ppiTZA2016 @@ -777,7 +876,7 @@ Survey 2022 -
                                  +
                                  ppiTGO2018 @@ -786,7 +885,14 @@ Base du Bien-être (QUIBB) 2018 -
                                    + +ppiTGO2023 +PPI for Togo based on data from the 2018 Enquête Harmonisée sur le +Conditions de Vie des Ménages (EHCVM) +2023 + + +
                                    ppiUGA2015 @@ -794,22 +900,29 @@ Base du Bien-être (QUIBB) Survey 2015 - + ppiUGA2022 PPI for Uganda based on Uganda’s 2020 National Household Survey 2022 - -
                                      + +
                                      ppiVNM2009 PPI for Vietnam based on the 2006 VHLSS 2009 + + +ppiVNM2023 +PPI for Vietnam based on data from the 2021 Multiple Indicator +Cluster Survey +2023 + -
                                        +
                                        ppiYEM2009 @@ -817,7 +930,7 @@ Survey 2009 -
                                          +
                                          ppiZAF2009 @@ -825,7 +938,14 @@ Survey 2009 -
                                            + +ppiZAF2023 +PPI for South Africa based on data from the 2019 General Household +Survey +2023 + + +
                                            ppiZMB2013_got @@ -833,21 +953,21 @@ Survey Survey (LCMS) using Göttingen poverty definitions 2013 - + ppiZMB2013_cso PPI for Zambia based on Zambia’s 2010 Living Conditions Monitoring Survey (LCMS) using CSO poverty definitions 2013 - + ppiZMB2017 PPI for Zambia based on Zambia’s 2015 Living Conditions Monitoring Survey (LCMS) using legacy poverty definitions 2017 - + ppiZMB2017_a PPI for Zambia based on Zambia’s 2015 Living Conditions Monitoring diff --git a/data-raw/createTables2019.R b/data-raw/createTables2019.R index c0582b50..bf650718 100644 --- a/data-raw/createTables2019.R +++ b/data-raw/createTables2019.R @@ -164,3 +164,428 @@ names(uga) <- c("score", "ppp100", "ppp190", "ppp320", "ppp550", "ppp800", ppiUGA2022 <- tibble::tibble(uga) usethis::use_data(ppiUGA2022, overwrite = TRUE) + + +## Benin PPI ################################################################### + +ben11 <- read_xlsx( + path = "data-raw/sources/benin2022.xlsx", + sheet = "Look-up Tables 11Q", + range = "A9:N110" +) |> + dplyr::mutate( + dplyr::across( + .cols = `National Poverty Line`:`Bottom 80th Percentile`, + .fns = ~.x * 100 + ) + ) + +names(ben11) <- c( + "score", "nl100", "nl150", "nl200", + "ppp190", "ppp320", "ppp550", "ppp215", "ppp365", "ppp685", + "percentile20", "percentile40", "percentile60", "percentile80" +) + +ppiBEN2022_11q <- ben11 + +usethis::use_data(ppiBEN2022_11q, overwrite = TRUE, compress = "xz") + + +ben6 <- read_xlsx( + path = "data-raw/sources/benin2022.xlsx", + sheet = "Look-up Tables 6Q", + range = "A9:N110" +) |> + dplyr::mutate( + dplyr::across( + .cols = `National Poverty Line`:`Bottom 80th Percentile`, + .fns = ~.x * 100 + ) + ) + +names(ben6) <- c( + "score", "nl100", "nl150", "nl200", + "ppp190", "ppp320", "ppp550", "ppp215", "ppp365", "ppp685", + "percentile20", "percentile40", "percentile60", "percentile80" +) + +ppiBEN2022_6q <- ben6 + +usethis::use_data(ppiBEN2022_6q, overwrite = TRUE, compress = "xz") + + +## Bolivia PPI ################################################################# + +bol <- read_xlsx( + path = "data-raw/sources/bolivia2023.xlsx", + sheet = "Look-up Table", + range = "B9:P110" +) |> + dplyr::mutate( + dplyr::across( + .cols = `National Poverty Line`:`Bottom 80th Percentile`, + .fns = ~.x * 100 + ) + ) + +names(bol) <- c( + "score", "nl100", "nl_extreme", "nl150", "nl200", + "ppp190", "ppp320", "ppp550", "ppp215", "ppp365", "ppp685", + "percentile20", "percentile40", "percentile60", "percentile80" +) + +ppiBOL2023 <- bol + +usethis::use_data(ppiBOL2023, overwrite = TRUE, compress = "xz") + + +## Burkina Faso PPI ############################################################ + +bfa <- read_xlsx( + path = "data-raw/sources/burkinafaso2023.xlsx", + sheet = "Look-up Table", + range = "B9:O110" +) |> + dplyr::mutate( + dplyr::across( + .cols = `National Poverty Line`:`Bottom 80th Percentile`, + .fns = ~.x * 100 + ) + ) + +names(bfa) <- c( + "score", "nl100", "nl150", "nl200", + "ppp215", "ppp365", "ppp685", "ppp190", "ppp320", "ppp550", + "percentile20", "percentile40", "percentile60", "percentile80" +) + +ppiBFA2023 <- bfa + +usethis::use_data(ppiBFA2023, overwrite = TRUE, compress = "xz") + + +## Cambodia PPI ################################################################ + +khm <- read_xlsx( + path = "data-raw/sources/cambodia2023.xlsx", + sheet = "Look-up Tables", + range = "A9:N110" +) |> + dplyr::mutate( + dplyr::across( + .cols = `National Poverty Line`:`Bottom 80th Percentile`, + .fns = ~.x * 100 + ) + ) + +names(khm) <- c( + "score", "nl100", "nl150", "nl200", + "ppp550", "ppp800", "ppp1100", "ppp1500", "ppp2170", "ppp685", + "percentile20", "percentile40", "percentile60", "percentile80" +) + +ppiKHM2023 <- khm + +usethis::use_data(ppiKHM2023, overwrite = TRUE, compress = "xz") + + +## Ecuador PPI ################################################################# + +ecu <- read_xlsx( + path = "data-raw/sources/ecuador2022.xlsx", + sheet = "Look-up Table (10Q)", + range = "A9:T110" +) |> + dplyr::mutate( + dplyr::across( + .cols = `National Poverty Lines`:`Bottom 80th Percentile`, + .fns = ~.x * 100 + ) + ) + +names(ecu) <- c( + "score", "nl100", "nl_extreme", "nl150", "nl200", + "ppp215", "ppp365", "ppp685", "ppp100", "ppp190", "ppp320", "ppp550", + "ppp800", "ppp1100", "ppp1500", "ppp2170", + "percentile20", "percentile40", "percentile60", "percentile80" +) + +ppiECU2022 <- ecu + +usethis::use_data(ppiECU2022, overwrite = TRUE, compress = "xz") + + +## El Salvador PPI ############################################################# + +slv <- read_xlsx( + path = "data-raw/sources/elsalvador2021.xlsx", + sheet = "Look-up Tables (10Q)", + range = "B9:V110" +) |> + dplyr::mutate( + dplyr::across( + .cols = `National Poverty Line`:`Bottom 80th Percentile`, + .fns = ~.x * 100 + ) + ) + +names(slv) <- c( + "score", "nl100", "nl_extreme", + "ppp215", "ppp365", "ppp685", "ppp100", "ppp190", "ppp320", "ppp550", + "ppp800", "ppp1100", "ppp1500", "ppp2170", "ppp125", "ppp250", "ppp500", + "percentile20", "percentile40", "percentile60", "percentile80" +) + +ppiSLV2021 <- slv + +usethis::use_data(ppiSLV2021, overwrite = TRUE, compress = "xz") + + +## Ethiopia PPI ################################################################ + +eth <- read_xlsx( + path = "data-raw/sources/ethiopia2023.xlsx", + sheet = "Look-up Tables", + range = "A9:T110" +) |> + dplyr::mutate( + dplyr::across( + .cols = `National Poverty Line`:`Bottom 80th Percentile`, + .fns = ~.x * 100 + ) + ) + +names(eth) <- c( + "score", "nl100", "nl_extreme", "nl150", "nl200", + "ppp100", "ppp190", "ppp320", "ppp550", "ppp800", "ppp1100", "ppp1500", + "ppp2170", "ppp125", "ppp250", "ppp500", + "percentile20", "percentile40", "percentile60", "percentile80" +) + +ppiETH2023 <- eth + +usethis::use_data(ppiETH2023, overwrite = TRUE, compress = "xz") + + +## Guatemala PPI ############################################################### + +gtm <- read_xlsx( + path = "data-raw/sources/guatemala2023.xlsx", + sheet = "Look-up Tables", + range = "B9:L110" +) |> + dplyr::mutate( + dplyr::across( + .cols = `$1.90/day 2011 PPP \r\n(Bottom 7th Percentile)*`:`Bottom 80th Percentile`, + .fns = ~.x * 100 + ) + ) + +names(gtm) <- c( + "score", "ppp190", "ppp320", "ppp550", "ppp215", "ppp365", "ppp685", + "percentile20", "percentile40", "percentile60", "percentile80" +) + +ppiGTM2023 <- gtm + +usethis::use_data(ppiGTM2023, overwrite = TRUE, compress = "xz") + + +## Honduras PPI ################################################################ + +hnd <- read_xlsx( + path = "data-raw/sources/honduras2023.xlsx", + sheet = "Look-up Table", + range = "B9:S110" +) |> + dplyr::mutate( + dplyr::across( + .cols = `National Poverty Line`:`Bottom 80th Percentile`, + .fns = ~.x * 100 + ) + ) + +names(hnd) <- c( + "score", "nl100", "nl_extreme", + "ppp100", "ppp190", "ppp320", "ppp550", "ppp800", "ppp1100", "ppp1500", + "ppp2170", "ppp125", "ppp250", "ppp500", + "percentile20", "percentile40", "percentile60", "percentile80" +) + +ppiHND2023 <- hnd + +usethis::use_data(ppiHND2023, overwrite = TRUE, compress = "xz") + + +## Indonesia PPI ############################################################### + +idn <- read_xlsx( + path = "data-raw/sources/indonesia2023.xlsx", + sheet = "Look-up Table", + range = "A9:J110" +) |> + dplyr::mutate( + dplyr::across( + .cols = `National Poverty Line`:`Bottom 80th Percentile`, + .fns = ~.x * 100 + ) + ) + +names(idn) <- c( + "score", "nl100", "ppp365", "ppp685", "ppp320", "ppp550", + "percentile20", "percentile40", "percentile60", "percentile80" +) + +ppiIDN2023 <- idn + +usethis::use_data(ppiIDN2023, overwrite = TRUE, compress = "xz") + + +## Papua New Guinea PPI ######################################################## + +png <- read_xlsx( + path = "data-raw/sources/papuanewguinea2023.xlsx", + sheet = "Look-up Tables", + range = "B9:J110" +) |> + dplyr::mutate( + dplyr::across( + .cols = `Bottom 20th percentile WI`:`Bottom 80th percentile WI Urban/Rural`, + .fns = ~.x * 100 + ) + ) + +names(png) <- c( + "score", + "percentile20_wi", "percentile40_wi", "percentile60_wi", "percentile80_wi", + "percentile20_wi_ur", "percentile40_wi_ur", "percentile60_wi_ur", + "percentile80_wi_ur" +) + +ppiPNG2023 <- png + +usethis::use_data(ppiPNG2023, overwrite = TRUE, compress = "xz") + + +## Papua New Guinea PPI ######################################################## + +phl <- read_xlsx( + path = "data-raw/sources/philippines2023.xlsx", + sheet = "Look-up Table", + range = "B9:N110" +) |> + dplyr::mutate( + dplyr::across( + .cols = `National Poverty Line`:`Bottom 80th Percentile`, + .fns = ~.x * 100 + ) + ) + +names(phl) <- c( + "score", + "nl100", "food", "ppp215", "ppp365", "ppp685", "ppp190", "ppp320", "ppp550", + "percentile20", "percentile40", "percentile60", "percentile80" +) + +ppiPHL2023 <- phl + +usethis::use_data(ppiPHL2023, overwrite = TRUE, compress = "xz") + + +## South Africa PPI ############################################################ + +zaf <- read_xlsx( + path = "data-raw/sources/southafrica2023.xlsx", + sheet = "Look-up Tables", + range = "B9:G110" +) |> + dplyr::mutate( + dplyr::across( + .cols = `Wealth Index Line`:`Bottom 80th Percentile`, + .fns = ~.x * 100 + ) + ) + +names(zaf) <- c( + "score", + "wealth_index", "percentile20", "percentile40", "percentile60", "percentile80" +) + +ppiZAF2023 <- zaf + +usethis::use_data(ppiZAF2023, overwrite = TRUE, compress = "xz") + + +## Togo PPI #################################################################### + +tgo <- read_xlsx( + path = "data-raw/sources/togo2023.xlsx", + sheet = "Look-up Table", + range = "A9:N110" +) |> + dplyr::mutate( + dplyr::across( + .cols = `National Poverty Line`:`Bottom 80th Percentile`, + .fns = ~.x * 100 + ) + ) + +names(tgo) <- c( + "score", + "nl100", "nl150", "nl200", + "ppp215", "ppp365", "ppp685", "ppp190", "ppp320", "ppp550", + "percentile20", "percentile40", "percentile60", "percentile80" +) + +ppiTGO2023 <- tgo + +usethis::use_data(ppiTGO2023, overwrite = TRUE, compress = "xz") + + +## Vietnam PPI ################################################################# + +vnm <- read_xlsx( + path = "data-raw/sources/vietnam2023.xlsx", + sheet = "Look-up Table", + range = "B9:F110" +) |> + dplyr::mutate( + dplyr::across( + .cols = `Bottom 20th Percentile`:`Bottom 80th Percentile`, + .fns = ~.x * 100 + ) + ) + +names(vnm) <- c( + "score", + "percentile20", "percentile40", "percentile60", "percentile80" +) + +ppiVNM2023 <- vnm + +usethis::use_data(ppiVNM2023, overwrite = TRUE, compress = "xz") + + +## Malawi PPI ################################################################## + +mwi <- read_xlsx( + path = "data-raw/sources/malawi2023.xlsx", + sheet = "Look-up Tables", + range = "A9:M110" +) |> + dplyr::mutate( + dplyr::across( + .cols = `National Poverty Line`:`Bottom 80th Percentile`, + .fns = ~.x * 100 + ) + ) + +names(mwi) <- c( + "score", "nl100", "food", + "ppp215", "ppp365", "ppp685", "ppp190", "ppp320", "ppp550", + "percentile20", "percentile40", "percentile60", "percentile80" +) + +ppiMWI2023 <- mwi + +usethis::use_data(ppiMWI2023, overwrite = TRUE, compress = "xz") diff --git a/data-raw/sources/benin2022.xlsx b/data-raw/sources/benin2022.xlsx new file mode 100644 index 00000000..32718dfa Binary files /dev/null and b/data-raw/sources/benin2022.xlsx differ diff --git a/data-raw/sources/bolivia2023.xlsx b/data-raw/sources/bolivia2023.xlsx new file mode 100644 index 00000000..f14388da Binary files /dev/null and b/data-raw/sources/bolivia2023.xlsx differ diff --git a/data-raw/sources/burkinafaso2023.xlsx b/data-raw/sources/burkinafaso2023.xlsx new file mode 100644 index 00000000..3a94f187 Binary files /dev/null and b/data-raw/sources/burkinafaso2023.xlsx differ diff --git a/data-raw/sources/cambodia2023.xlsx b/data-raw/sources/cambodia2023.xlsx new file mode 100644 index 00000000..47160643 Binary files /dev/null and b/data-raw/sources/cambodia2023.xlsx differ diff --git a/data-raw/sources/ecuador2022.xlsx b/data-raw/sources/ecuador2022.xlsx new file mode 100644 index 00000000..3fb4805e Binary files /dev/null and b/data-raw/sources/ecuador2022.xlsx differ diff --git a/data-raw/sources/elsalvador2021.xlsx b/data-raw/sources/elsalvador2021.xlsx new file mode 100644 index 00000000..f1f2011e Binary files /dev/null and b/data-raw/sources/elsalvador2021.xlsx differ diff --git a/data-raw/sources/ethiopia2023.xlsx b/data-raw/sources/ethiopia2023.xlsx new file mode 100644 index 00000000..c2376c39 Binary files /dev/null and b/data-raw/sources/ethiopia2023.xlsx differ diff --git a/data-raw/sources/guatemala2023.xlsx b/data-raw/sources/guatemala2023.xlsx new file mode 100644 index 00000000..1467b948 Binary files /dev/null and b/data-raw/sources/guatemala2023.xlsx differ diff --git a/data-raw/sources/honduras2023.xlsx b/data-raw/sources/honduras2023.xlsx new file mode 100644 index 00000000..4e920272 Binary files /dev/null and b/data-raw/sources/honduras2023.xlsx differ diff --git a/data-raw/sources/indonesia2023.xlsx b/data-raw/sources/indonesia2023.xlsx new file mode 100644 index 00000000..64431562 Binary files /dev/null and b/data-raw/sources/indonesia2023.xlsx differ diff --git a/data-raw/sources/malawi2023.xlsx b/data-raw/sources/malawi2023.xlsx new file mode 100644 index 00000000..369cb025 Binary files /dev/null and b/data-raw/sources/malawi2023.xlsx differ diff --git a/data-raw/sources/papuanewguinea2023.xlsx b/data-raw/sources/papuanewguinea2023.xlsx new file mode 100644 index 00000000..1568d26d Binary files /dev/null and b/data-raw/sources/papuanewguinea2023.xlsx differ diff --git a/data-raw/sources/philippines2023.xlsx b/data-raw/sources/philippines2023.xlsx new file mode 100644 index 00000000..0b460bd1 Binary files /dev/null and b/data-raw/sources/philippines2023.xlsx differ diff --git a/data-raw/sources/southafrica2023.xlsx b/data-raw/sources/southafrica2023.xlsx new file mode 100644 index 00000000..33e8c29c Binary files /dev/null and b/data-raw/sources/southafrica2023.xlsx differ diff --git a/data-raw/sources/togo2023.xlsx b/data-raw/sources/togo2023.xlsx new file mode 100644 index 00000000..5961f0e5 Binary files /dev/null and b/data-raw/sources/togo2023.xlsx differ diff --git a/data-raw/sources/vietnam2023.xlsx b/data-raw/sources/vietnam2023.xlsx new file mode 100644 index 00000000..154f58b6 Binary files /dev/null and b/data-raw/sources/vietnam2023.xlsx differ diff --git a/data-raw/steer.csv b/data-raw/steer.csv index c162a5a0..8490f1f5 100644 --- a/data-raw/steer.csv +++ b/data-raw/steer.csv @@ -1,36 +1,46 @@ region,country,survey_year,release_year,description,type,filename Asia,Afghanistan,2007,2012,PPI for Afghanistan based on 2007/8 National Risk and Vulnerability Survey (NRVA),sps,ppiAFG2012 Africa,Angola,2008,2015,PPI for Angola based on the 2008/2009 Household Living Standards Survey,sps,ppiAGO2015 -Asia,Bangladesh,2010,2013,PPI for Benin based on 2010 data,sps,ppiBEN2012 -Africa,Benin,2010,2012,PPI for Bangladesh using Bangaldesh 2010 HIES Survey,sps,ppiBGD2013 -Latin American and the Carribean,Bolivia,2013,2015,PPI for Bolivia using Bolivia 2013 Household Survey,sps,ppiBOL2015 -Latin American and the Carribean,Brazil,2008,2010,PPI for Brazil based on the 2008 PNAD,sps,ppiBRA2010 +Asia,Bangladesh,2010,2013,PPI for Bangladesh using Bangaldesh 2010 HIES Survey,sps,ppiBEN2012 +Africa,Benin,2010,2012,PPI for Benin based on 2010 data,sps,ppiBGD2013 +Africa,Benin,2018,2022,PPI for Benin based on 2018 data from Benin 2018/9 Enquête Harmonisée sur le Conditions de Vie des Ménages (EHCVM) and using a 6 question score card,ipa,ppiBEN2022_6q +Africa,Benin,2018,2022,PPI for Benin based on 2018 data from Benin 2018/9 Enquête Harmonisée sur le Conditions de Vie des Ménages (EHCVM) and using an 11 question score card,ipa,ppiBEN2022_11q +Latin American and the Caribbean,Bolivia,2013,2015,PPI for Bolivia using Bolivia 2013 Household Survey,sps,ppiBOL2015 +Latin American and the Caribbean,Bolivia,2020,2023,PPI for Bolivia using Bolivia's Encuesta de Hogares 2020,ipa,ppiBOL2023 +Latin American and the Caribbean,Brazil,2008,2010,PPI for Brazil based on the 2008 PNAD,sps,ppiBRA2010 Africa,Burkina Faso,2003,2011,PPI for Burkina Faso using Burkina Faso 2003 Household Living Standards Survey,sps,ppiBFA2011 Africa,Burkina Faso,2014,2017,PPI for Burkina Faso using Burkina Faso 2014 Permanent Multi-Sector Survey,sps,ppiBFA2014 Africa,Burkina Faso,2014,2017,PPI for Burkina Faso using Burkina Faso 2014 Enquete Multisectorielle Continue (EMC) based on the IPS new approach to PPI calculation,ipa,ppiBFA2017 +Africa,Burkina Faso,2018,2023,PPI for Burkina Faso using 2018 Enquête Harmonisée sur le Conditions de Vie des Ménages (EHCVM),ipa,ppiBFA2023 Asia,Cambodia,2011,2015,PPI for Cambodia using Cambodia 2011 Socio-Economic Survey based using legacy poverty lines,sps,ppiKHM2015 Asia,Cambodia,2011,2015,PPI for Cambodia using Cambodia 2011 Socio-Economic Survey based using government definition poverty lines,sps,ppiKHM2015_gov Asia,Cambodia,2011,2015,PPI for Cambodia using Cambodia 2011 Socio-Economic Survey based using World Bank definition poverty lines,sps,ppiKHM2015_wb +Asia,Cambodia,2020,2023,PPI for Cambodia using 2020 Living Standards Measurement Study - Plus (LSMS+),ipa,ppiKHM2023 Africa,Cameroon,2007,2013,PPI for Cameroon using Cameroon 2007 Household Survey,sps,ppiCMR2013 -Latin American and the Carribean,Colombia,2009,2012,PPI for Colombia based on Colombia 2009 Encuesta Integrada de Hogares. This table uses the old poverty definitions.,sps,ppiCOL2012 -Latin American and the Carribean,Colombia,2009,2012,PPI for Colombia based on Colombia 2009 Encuesta Integrada de Hogares. This table uses the new poverty definitions for Colombia.,sps,ppiCOL2012_a -Latin American and the Carribean,Colombia,2016,2018,PPI for Colombia based on Colombia 2016 Gran Encuesta Integrada de Hogares (GEIH),ipa,ppiCOL2018 +Latin American and the Caribbean,Colombia,2009,2012,PPI for Colombia based on Colombia 2009 Encuesta Integrada de Hogares. This table uses the old poverty definitions.,sps,ppiCOL2012 +Latin American and the Caribbean,Colombia,2009,2012,PPI for Colombia based on Colombia 2009 Encuesta Integrada de Hogares. This table uses the new poverty definitions for Colombia.,sps,ppiCOL2012_a +Latin American and the Caribbean,Colombia,2016,2018,PPI for Colombia based on Colombia 2016 Gran Encuesta Integrada de Hogares (GEIH),ipa,ppiCOL2018 Africa,Cote d'Ivoire,2008,2013,PPI for Ivory Coast using the Ivory Coast 2008 Household Living Standards Survey,sps,ppiCIV2013 Africa,Cote d'Ivoire,2015,2018,PPI for Ivory Coast using the Ivory Coast 2015 Enquete sur le Niveau de Vie des Menages,ipa,ppiCIV2018 -Latin American and the Carribean,Dominican Republic,2007,2010,PPI for Dominican Republic based on the 2007 Encuesta Nacional de Ingresos y Gastos de los Hogares (ENIGH),sps,ppiDOM2010 -Latin American and the Carribean,Dominican Republic,2016,2018,PPI for Dominican Republic based on the 2016 Encuesta Nacional de Fuerza de Trabajo (ENFT),ipa,ppiDOM2018 -Latin American and the Carribean,Ecuador,2013,2015,PPI for Ecuador based on the 2013 Living Standards Survey,sps,ppiECU2015 +Latin American and the Caribbean,Dominican Republic,2007,2010,PPI for Dominican Republic based on the 2007 Encuesta Nacional de Ingresos y Gastos de los Hogares (ENIGH),sps,ppiDOM2010 +Latin American and the Caribbean,Dominican Republic,2016,2018,PPI for Dominican Republic based on the 2016 Encuesta Nacional de Fuerza de Trabajo (ENFT),ipa,ppiDOM2018 +Latin American and the Caribbean,Ecuador,2013,2015,PPI for Ecuador based on the 2013 Living Standards Survey,sps,ppiECU2015 +Latin American and the Caribbean,Ecuador,2021,2022,"PPI for Ecuador based on Encuesta Nacional de Empleo, Desempleo y Subempleo (ENEMDU) from 2019, 2020 and 2021",ipa,ppiECU2022 Middle East and North Africa,Egypt,2004,2010,PPI for Egypt based on the 2004/5 HIECS,sps,ppiEGY2010 -Latin American and the Carribean,El Salvador,2008,2010,PPI for El Salvador based on the 2008 EHPM,sps,ppiSLV2010 +Latin American and the Caribbean,El Salvador,2008,2010,PPI for El Salvador based on the 2008 EHPM,sps,ppiSLV2010 +Latin American and the Caribbean,El Salvador,2019,2021,PPI for El Salvador based on the 2019 Encuesta de Hogares de Propósitos Múltiples,ipa,ppiSLV2021 Africa,Ethiopia,2010,2016,PPI for Ethiopia based on Ethiopia 2010/11 Household Consumption and Expenditure Survey,sps,ppiETH2016 +Africa,Ethiopia,2019,2023,PPI for Ethiopia based on Ethiopia Socioeconomic Survey 2018/2019,ipa,ppiETH2023 Asia,Fiji,2008,2014,PPI for Fiji based on Fiji 2008/9 Household Income and Expenditure Survey,sps,ppiFJI2014 Africa,Ghana,2012,2015,PPI for Ghana based on Ghana 2012/13 Living Standards Survey using legacy poverty lines,sps,ppiGHA2015 Africa,Ghana,2012,2015,PPI for Ghana based on Ghana 2012/13 Living Standards Survey using the new-definition poverty lines deflated with Ghana CPI,sps,ppiGHA2015_a Africa,Ghana,2012,2015,PPI for Ghana based on Ghana 2012/13 Living Standards Survey using the new-definition poverty | lines deflated with the change in 100% of national poverty line,sps,ppiGHA2015_b Africa,Ghana,2016,2019,PPI for Ghana based on Ghana 2016/2017 Living Standards Survey,ipa,ppiGHA2019 -Latin American and the Carribean,Guatemala,2014,2016,PPI for Guatemala based on Guatemala 2014 Household Living Standards Survey,sps,ppiGTM2016 -Latin American and the Carribean,Haiti,2012,2016,PPI for Haiti based on Haiti 2012 Post-Earthquake Living Standards Survey,sps,ppiHTI2016 -Latin American and the Carribean,Honduras,2007,2010,PPI for Honduras based on the 2007 EPHPM,sps,ppiHND2010 +Latin American and the Caribbean,Guatemala,2014,2016,PPI for Guatemala based on Guatemala 2014 Household Living Standards Survey,sps,ppiGTM2016 +Latin American and the Caribbean,Guatemala,2021,2023,PPI for Guatemala based on Encuesta Nacional de Empleo e Ingresos of 2021,ipa,ppiGTM2023 +Latin American and the Caribbean,Haiti,2012,2016,PPI for Haiti based on Haiti 2012 Post-Earthquake Living Standards Survey,sps,ppiHTI2016 +Latin American and the Caribbean,Honduras,2007,2010,PPI for Honduras based on the 2007 EPHPM,sps,ppiHND2010 +Latin American and the Caribbean,Honduras,2019,2023,PPI for Honduras based on the Encuesta Permanente de Hogares de Propósitos Múltiples (EPHPM) 2019,ipa,ppiHND2023 Asia,India,2011,2016,PPI for India using India 2011/12 Socio-Economic using the R59 legacy poverty lines using MRP consumption,sps,ppiIND2016_r59 Asia,India,2011,2016,PPI for India using India 2011/12 Socio-Economic using the R59 legacy poverty lines using MRP consumption,sps,ppiIND2016_r62 Asia,India,2011,2016,PPI for India using India 2011/12 Socio-Economic using the R66 legacy poverty lines using MRP consumption,sps,ppiIND2016_r66 @@ -38,6 +48,7 @@ Asia,India,2011,2016,PPI for India using India 2011/12 Socio-Economic using the Asia,Indonesia,2010,2012,PPI for Indonesia based on data from 2010 using legacy poverty lines,sps,ppiIDN2012 Asia,Indonesia,2010,2012,PPI for Indonesia based on data from 2010 using new definition poverty lines,sps,ppiIDN2012_a Asia,Indonesia,2016,2020,PPI for Indonesia based on data from Indonesia's SUSENAS 2016,ipa,ppiIDN2020 +Asia,Indonesia,2022,2023,PPI for Indonesia based on data from 2022 National Socioeconomic Survey (SUSENAS),ipa,ppiIDN2023 Middle East and North Africa,Jordan,2006,2010,PPI for Jordan using Jordan 2006 Household Income and Expenditure Survey,sps,ppiJOR2010 Africa,Kenya,2005,2011,PPI for Kenya using Kenya 2005/06 Integrated Household Budget Survey,sps,ppiKEN2011 Africa,Kenya,2015,2018,PPI for Kenya using Kenya 2015 Integrated Household Budget Survey (KIHBS),ipa,ppiKEN2018 @@ -47,9 +58,10 @@ Africa,Malawi,2010,2015,PPI for Malawi based on Malawi 2010/11 Integrated Househ Africa,Malawi,2010,2015,PPI for Malawi based on Malawi 2010/11 Integrated Household Survey using government poverty definitions,sps,ppiMWI2015_gov Africa,Malawi,2010,2015,PPI for Malawi based on Malawi 2010/11 Integrated Household Survey using PBM poverty definitions,sps,ppiMWI2015_pbm Africa,Malawi,2017,2020,PPI for Malawi based on 2016-2017 Fourth Integrated Household Survey (IHS4) using new PPI definitions,ipa,ppiMWI2020 +Africa,Malawi,2019,2023,PPI for Malawi based on data from the Fifth Integrated Household Survey 2019,ipa,ppiMWI2023 Africa,Mali,2001,2010,PPI for Mali based on Mali 2001 Poverty Evalution Survey,sps,ppiMLI2010 -Latin American and the Carribean,Mexico,2014,2017,PPI for Mexico based on Mexico Encuesta Nacional de Ingresos y Gastos de los Hogares de 2014 using legacy definitions of poverty,ipa,ppiMEX2017 -Latin American and the Carribean,Mexico,2014,2017,PPI for Mexico based on Mexico Encuesta Nacional de Ingresos y Gastos de los Hogares de 2014 using new definitions of poverty,ipa,ppiMEX2017_a +Latin American and the Caribbean,Mexico,2014,2017,PPI for Mexico based on Mexico Encuesta Nacional de Ingresos y Gastos de los Hogares de 2014 using legacy definitions of poverty,ipa,ppiMEX2017 +Latin American and the Caribbean,Mexico,2014,2017,PPI for Mexico based on Mexico Encuesta Nacional de Ingresos y Gastos de los Hogares de 2014 using new definitions of poverty,ipa,ppiMEX2017_a Asia,Mongolia,2014,2016,PPI for Mongolia based on Mongolia 2014 Household Socio-Economic Survey,sps,ppiMNG2016 Middle East and North Africa,Morocco,2007,2013,PPI for Morocco based on Morocco 2007 Households Living Standards Survey,sps,ppiMAR2013 Africa,Mozambique,2008,2013,PPI for Mozambique based on 2008/9 Household Budget Survey,sps,ppiMOZ2013 @@ -59,16 +71,18 @@ Asia,Myanmar,2015,2019,PPI for Myanmar based on Myanmar 2015 Poverty and Living Africa,Namibia,2009,2013,PPI for Namibia based on Namibia 2009/10 Household Income and Expenditure Survey,sps,ppiNAM2013 Asia,Nepal,2010,2013,PPI for Nepal using legacy poverty definition lines,sps,ppiNPL2013 Asia,Nepal,2010,2013,PPI for Nepal using new poverty definition lines,sps,ppiNPL2013_a -Latin American and the Carribean,Nicaragua,2009,2013,PPI for Nicaragua based on Nicaragua 2009 Living Standards Measurement Survey,sps,ppiNIC2013 +Latin American and the Caribbean,Nicaragua,2009,2013,PPI for Nicaragua based on Nicaragua 2009 Living Standards Measurement Survey,sps,ppiNIC2013 Africa,Niger,2007,2013,PPI for Niger based on Niger 2007/8 National Household Budget and Expenditure Survey,sps,ppiNER2013 Africa,Nigeria,2012,2015,PPI for Nigeria based on Nigeria 2012/13 General Household Panel Survey,sps,ppiNGA2015 Asia,Pakistan,2005,2009,PPI for Pakistan using Pakistan 2005/6 Social and Living Standards Measurement Survey,sps,ppiPAK2009 Middle East and North Africa,Palestine,2011,2014,PPI for Palestine based on Palestine 2011 Expenditure and Consumption Survey,sps,ppiPSE2014 -Latin American and the Carribean,Paraguay,2011,2012,PPI for Paraguay based on Paraguay 2011 EPH,sps,ppiPRY2012 -Latin American and the Carribean,Peru,2010,2012,PPI for Peru based on Peru 2010 National Household Survey,sps,ppiPER2012 -Latin American and the Carribean,Peru,2016,2018,PPI for Peru based on Peru 2016 Encuesta Nacional de Hogares sobre Condiciones de Vida y Pobreza (ENAHO),ipa,ppiPER2018 +Asia,Papua New Guinea,2018,2023,PPI for Papua New Guinea based on data from 2016-2018 Demographic and Health Survey (DHS),ipa,ppiPNG2023 +Latin American and the Caribbean,Paraguay,2011,2012,PPI for Paraguay based on Paraguay 2011 EPH,sps,ppiPRY2012 +Latin American and the Caribbean,Peru,2010,2012,PPI for Peru based on Peru 2010 National Household Survey,sps,ppiPER2012 +Latin American and the Caribbean,Peru,2016,2018,PPI for Peru based on Peru 2016 Encuesta Nacional de Hogares sobre Condiciones de Vida y Pobreza (ENAHO),ipa,ppiPER2018 Asia,Philippines,2009,2012,PPI for the Philippines based on Philippines 2009 FIES/LFS.,sps,ppiPHL2014 Asia,Philippines,2015,2018,PPI for the Philippines based on Philippines 2015 Family Income and Expenditure Survey (FIES),ipa,ppiPHL2018 +Asia,Philippines,2018,2023,PPI for the Philippines based on data from the 2018 Family Income and Expenditure Survey (FIES),ipa,ppiPHL2023 Eastern Europe and Central Asia,Romania,2007,2009,PPI for Romania based on the 2007 HBS,sps,ppiROU2009 Eastern Europe and Central Asia,Russia,2007,2010,PPI for Russia based on 2007 HBS,sps,ppiRUS2010 Africa,Rwanda,2010,2016,PPI for Rwanda based on Rwanda 2010/11 Integrated Household Living Standards Survey,sps,ppiRWA2016 @@ -77,6 +91,7 @@ Africa,Senegal,2005,2009,PPI for Senegal based on Senegal 2005/6 Enquete de Suiv Africa,Senegal,2011,2018,PPI for Senegal based on Senegal 2011 Enguete de Suivi de la Pauvrete au Senegal (ESPS),ipa,ppiSEN2018 Africa,Sierra Leone,2003,2011,PPI for Sierra Leone based on Sierra Leone 2003/4 HIS,sps,ppiSLE2011 Africa,South Africa,2005,2009,PPI for South Africa based on the 2005/6 IES,sps,ppiZAF2009 +Africa,South Africa,2019,2023,PPI for South Africa based on the 2019 General Household Survey,ipa,ppiZAF2023 Asia,Sri Lanka,2012,2016,PPI for Sri Lanka using Sri Lanka 2012/13 Household Income and Expenditure Survey,sps,ppiLKA2016 Middle East and North Africa,Syria,2006,2010,PPI for Syria based on Syria 2006/7 Household Income and Expenditure Survey,sps,ppiSYR2010 Asia,Tajikistan,2007,2015,PPI for Tajikistan based on 2007 data,sps,ppiTJK2015 @@ -84,9 +99,11 @@ Africa,Tanzania,2011,2016,PPI for Tanzania based on Tanzania 2011/12 Household B Africa,Tanzania,2018,2022,PPI for Tanzania based on Tanzania 2017/18 Household Budget Survey,ipa,ppiTZA2022 Asia,Timor-Leste,2007,2013,PPI for Timor Leste based on Timor-Leste 2007 Survey of Living Standards,sps,ppiTLS2013 Africa,Togo,2015,2018,PPI for Togo based on Togo 2015 Questionnaire des Indicateurs de Base du Bien-otre (QUIBB),ipa,ppiTGO2018 +Africa,Togo,2018,2023,PPI for Togo based on data from the 2018 Enquête Harmonisée sur le Conditions de Vie des Ménages (EHCVM),ipa,ppiTGO2023 Africa,Uganda,2012,2015,PPI for Uganda based on Uganda 2012/13 National Household Survey,sps,ppiUGA2015 Africa,Uganda,2020,2022,PPI for Uganda based on Uganda National Panel Survey 2018 and the Uganda National Panel Survey 2020 ,ipa,ppiUGA2022 Asia,Vietnam,2006,2009,PPI for Vietnam based on the 2006 VHLSS,sps,ppiVNM2009 +Asia,Vietnam,2021,2023,PPI for Vietnam based on data from the 2021 Multiple Indicator Cluster Survey,ipa,ppiVNM2023 Middle East and North Africa,Yemen,2005,2009,PPI for Yemen based on 2005/06 HBS,sps,ppiYEM2009 Africa,Zambia,2010,2013,PPI for Zambia based on Zambia 2010 Living Conditions Monitoring Survey (LCMS) using Gottingen poverty definitions,sps,ppiZMB2013_got Africa,Zambia,2010,2013,PPI for Zambia based on Zambia 2010 Living Conditions Monitoring Survey (LCMS) using CSO poverty definitions,sps,ppiZMB2013_cso diff --git a/data/ppiBEN2022_11q.rda b/data/ppiBEN2022_11q.rda new file mode 100644 index 00000000..4fbabb35 Binary files /dev/null and b/data/ppiBEN2022_11q.rda differ diff --git a/data/ppiBEN2022_6q.rda b/data/ppiBEN2022_6q.rda new file mode 100644 index 00000000..40af8e7b Binary files /dev/null and b/data/ppiBEN2022_6q.rda differ diff --git a/data/ppiBFA2023.rda b/data/ppiBFA2023.rda new file mode 100644 index 00000000..100abb5c Binary files /dev/null and b/data/ppiBFA2023.rda differ diff --git a/data/ppiBOL2023.rda b/data/ppiBOL2023.rda new file mode 100644 index 00000000..49f05a9a Binary files /dev/null and b/data/ppiBOL2023.rda differ diff --git a/data/ppiECU2022.rda b/data/ppiECU2022.rda new file mode 100644 index 00000000..8e757949 Binary files /dev/null and b/data/ppiECU2022.rda differ diff --git a/data/ppiETH2023.rda b/data/ppiETH2023.rda new file mode 100644 index 00000000..d92766f7 Binary files /dev/null and b/data/ppiETH2023.rda differ diff --git a/data/ppiGTM2023.rda b/data/ppiGTM2023.rda new file mode 100644 index 00000000..9c96e97a Binary files /dev/null and b/data/ppiGTM2023.rda differ diff --git a/data/ppiHND2023.rda b/data/ppiHND2023.rda new file mode 100644 index 00000000..566f9076 Binary files /dev/null and b/data/ppiHND2023.rda differ diff --git a/data/ppiIDN2023.rda b/data/ppiIDN2023.rda new file mode 100644 index 00000000..56726d73 Binary files /dev/null and b/data/ppiIDN2023.rda differ diff --git a/data/ppiKHM2023.rda b/data/ppiKHM2023.rda new file mode 100644 index 00000000..ece140d4 Binary files /dev/null and b/data/ppiKHM2023.rda differ diff --git a/data/ppiMWI2023.rda b/data/ppiMWI2023.rda new file mode 100644 index 00000000..f8d81bd7 Binary files /dev/null and b/data/ppiMWI2023.rda differ diff --git a/data/ppiPHL2023.rda b/data/ppiPHL2023.rda new file mode 100644 index 00000000..5bfecfc0 Binary files /dev/null and b/data/ppiPHL2023.rda differ diff --git a/data/ppiPNG2023.rda b/data/ppiPNG2023.rda new file mode 100644 index 00000000..fe88d14d Binary files /dev/null and b/data/ppiPNG2023.rda differ diff --git a/data/ppiSLV2021.rda b/data/ppiSLV2021.rda new file mode 100644 index 00000000..d400010c Binary files /dev/null and b/data/ppiSLV2021.rda differ diff --git a/data/ppiTGO2023.rda b/data/ppiTGO2023.rda new file mode 100644 index 00000000..1e90d9fb Binary files /dev/null and b/data/ppiTGO2023.rda differ diff --git a/data/ppiVNM2023.rda b/data/ppiVNM2023.rda new file mode 100644 index 00000000..8ba20972 Binary files /dev/null and b/data/ppiVNM2023.rda differ diff --git a/data/ppiZAF2023.rda b/data/ppiZAF2023.rda new file mode 100644 index 00000000..2e53b9d4 Binary files /dev/null and b/data/ppiZAF2023.rda differ diff --git a/inst/WORDLIST b/inst/WORDLIST index d0059c5d..453f830f 100644 --- a/inst/WORDLIST +++ b/inst/WORDLIST @@ -33,6 +33,7 @@ Ingresos Inquerito Inquérito Integrada +Katilingban Kyrgyz LCMS LFS diff --git a/man/find_table.Rd b/man/find_table.Rd index 32bef9e6..aa5da500 100644 --- a/man/find_table.Rd +++ b/man/find_table.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/find_table.R +% Please edit documentation in R/02_find_table.R \name{find_table} \alias{find_table} \title{Search for PPI table by specifying region, country and/or calculation type.} diff --git a/man/get_table.Rd b/man/get_table.Rd index db2e7393..d4552b04 100644 --- a/man/get_table.Rd +++ b/man/get_table.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/get_table.R +% Please edit documentation in R/03_get_table.R \name{get_table} \alias{get_table} \title{Get PPI table/s based on a specified PPI table/s search output} diff --git a/man/ppiAFG2012.Rd b/man/ppiAFG2012.Rd index b497f218..6a059933 100644 --- a/man/ppiAFG2012.Rd +++ b/man/ppiAFG2012.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiAFG2012} \alias{ppiAFG2012} diff --git a/man/ppiAGO2015.Rd b/man/ppiAGO2015.Rd index fbfa136b..ed8dd895 100644 --- a/man/ppiAGO2015.Rd +++ b/man/ppiAGO2015.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiAGO2015} \alias{ppiAGO2015} diff --git a/man/ppiBEN2012.Rd b/man/ppiBEN2012.Rd index 5adc51e1..4cdbc314 100644 --- a/man/ppiBEN2012.Rd +++ b/man/ppiBEN2012.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/00_benin.R \docType{data} \name{ppiBEN2012} \alias{ppiBEN2012} @@ -43,7 +43,7 @@ Poverty Probability Index (PPI) lookup table for Benin # based on a specific poverty definition. In this example, the USAID # extreme poverty definition ppiScore <- 50 - ppiBEN2012[ppiBEN2012$score == ppiScore, "extreme"] + ppiBEN2012[ppiBEN2012$score == ppiScore, "nl100"] } \keyword{datasets} diff --git a/man/ppiBEN2022_11q.Rd b/man/ppiBEN2022_11q.Rd new file mode 100644 index 00000000..8a957166 --- /dev/null +++ b/man/ppiBEN2022_11q.Rd @@ -0,0 +1,58 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/00_benin.R +\docType{data} +\name{ppiBEN2022_11q} +\alias{ppiBEN2022_11q} +\title{Poverty Probability Index (PPI) lookup table for Benin for 2022 for 11 +questions score card} +\format{ +A data frame with 14 columns and 101 rows: +\describe{ +\item{\code{score}}{PPI score} +\item{\code{nl100}}{National poverty line (100\%)} +\item{\code{nl150}}{National poverty line (150\%)} +\item{\code{nl200}}{National poverty line (200\%)} +\item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)} +\item{\code{ppp320}}{Below $3.20 per day purchasing power parity (2011)} +\item{\code{ppp550}}{Below $5.50 per day purchasing power parity (2011)} +\item{\code{ppp215}}{Below $2.15 per day purchasing power parity (2017)} +\item{\code{ppp365}}{Below $3.65 per day purchasing power parity (2017)} +\item{\code{ppp685}}{Below $6.85 per day purchasing power parity (2017)} +\item{\code{percentile20}}{Below 20th percentile poverty line} +\item{\code{percentile40}}{Below 40th percentile poverty line} +\item{\code{percentile60}}{Below 60th percentile poverty line} +\item{\code{percentile80}}{Below 80th percentile poverty line} +} +} +\source{ +\url{https://www.povertyindex.org} +} +\usage{ +ppiBEN2022_11q +} +\description{ +Poverty Probability Index (PPI) lookup table for Benin for 2022 for 11 +questions score card +} +\examples{ + # Access Benin PPI table + ppiBEN2022_11q + + # Given a specific PPI score (from 0 - 100), get the row of poverty + # probabilities from PPI table it corresponds to + ppiScore <- 50 + ppiBEN2022_11q[ppiBEN2022_11q$score == ppiScore, ] + + # Use subset() function to get the row of poverty probabilities corresponding + # to specific PPI score + ppiScore <- 50 + subset(ppiBEN2022_11q, score == ppiScore) + + # Given a specific PPI score (from 0 - 100), get a poverty probability + # based on a specific poverty definition. In this example, the USAID + # extreme poverty definition + ppiScore <- 50 + ppiBEN2022_11q[ppiBEN2022_11q$score == ppiScore, "nl100"] + +} +\keyword{datasets} diff --git a/man/ppiBEN2022_6q.Rd b/man/ppiBEN2022_6q.Rd new file mode 100644 index 00000000..ba09e91d --- /dev/null +++ b/man/ppiBEN2022_6q.Rd @@ -0,0 +1,58 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/00_benin.R +\docType{data} +\name{ppiBEN2022_6q} +\alias{ppiBEN2022_6q} +\title{Poverty Probability Index (PPI) lookup table for Benin for 2022 for 6 +questions score card} +\format{ +A data frame with 14 columns and 101 rows: +\describe{ +\item{\code{score}}{PPI score} +\item{\code{nl100}}{National poverty line (100\%)} +\item{\code{nl150}}{National poverty line (150\%)} +\item{\code{nl200}}{National poverty line (200\%)} +\item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)} +\item{\code{ppp320}}{Below $3.20 per day purchasing power parity (2011)} +\item{\code{ppp550}}{Below $5.50 per day purchasing power parity (2011)} +\item{\code{ppp215}}{Below $2.15 per day purchasing power parity (2017)} +\item{\code{ppp365}}{Below $3.65 per day purchasing power parity (2017)} +\item{\code{ppp685}}{Below $6.85 per day purchasing power parity (2017)} +\item{\code{percentile20}}{Below 20th percentile poverty line} +\item{\code{percentile40}}{Below 40th percentile poverty line} +\item{\code{percentile60}}{Below 60th percentile poverty line} +\item{\code{percentile80}}{Below 80th percentile poverty line} +} +} +\source{ +\url{https://www.povertyindex.org} +} +\usage{ +ppiBEN2022_6q +} +\description{ +Poverty Probability Index (PPI) lookup table for Benin for 2022 for 6 +questions score card +} +\examples{ + # Access Benin PPI table + ppiBEN2022_6q + + # Given a specific PPI score (from 0 - 100), get the row of poverty + # probabilities from PPI table it corresponds to + ppiScore <- 50 + ppiBEN2022_6q[ppiBEN2022_6q$score == ppiScore, ] + + # Use subset() function to get the row of poverty probabilities corresponding + # to specific PPI score + ppiScore <- 50 + subset(ppiBEN2022_6q, score == ppiScore) + + # Given a specific PPI score (from 0 - 100), get a poverty probability + # based on a specific poverty definition. In this example, the USAID + # extreme poverty definition + ppiScore <- 50 + ppiBEN2022_6q[ppiBEN2022_6q$score == ppiScore, "nl100"] + +} +\keyword{datasets} diff --git a/man/ppiBFA2011.Rd b/man/ppiBFA2011.Rd index 4f3d03de..5304aa2c 100644 --- a/man/ppiBFA2011.Rd +++ b/man/ppiBFA2011.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/00_burkina_faso.R \docType{data} \name{ppiBFA2011} \alias{ppiBFA2011} diff --git a/man/ppiBFA2014.Rd b/man/ppiBFA2014.Rd index 00c7451f..4d7d0107 100644 --- a/man/ppiBFA2014.Rd +++ b/man/ppiBFA2014.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/00_burkina_faso.R \docType{data} \name{ppiBFA2014} \alias{ppiBFA2014} diff --git a/man/ppiBFA2017.Rd b/man/ppiBFA2017.Rd index 2ab096aa..3595dd86 100644 --- a/man/ppiBFA2017.Rd +++ b/man/ppiBFA2017.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/00_burkina_faso.R \docType{data} \name{ppiBFA2017} \alias{ppiBFA2017} diff --git a/man/ppiBFA2023.Rd b/man/ppiBFA2023.Rd new file mode 100644 index 00000000..62a1c7ab --- /dev/null +++ b/man/ppiBFA2023.Rd @@ -0,0 +1,56 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/00_burkina_faso.R +\docType{data} +\name{ppiBFA2023} +\alias{ppiBFA2023} +\title{Poverty Probability Index (PPI) lookup table for Burkina Faso for 2023} +\format{ +A data frame with 14 columns and 101 rows: +\describe{ +\item{\code{score}}{PPI score} +\item{\code{nl100}}{National poverty line (100\%)} +\item{\code{nl150}}{National poverty line (150\%)} +\item{\code{nl200}}{National poverty line (200\%)} +\item{\code{ppp215}}{Below $1.25 per day purchasing power parity (2017)} +\item{\code{ppp365}}{Below $2.50 per day purchasing power parity (2017)} +\item{\code{ppp685}}{Below $5.00 per day purchasing power parity (2017)} +\item{\code{ppp190}}{Below $1.00 per day purchasing power parity (2011)} +\item{\code{ppp320}}{Below $1.90 per day purchasing power parity (2011)} +\item{\code{ppp550}}{Below $3.20 per day purchasing power parity (2011)} +\item{\code{percentile20}}{Below 20th percentile poverty line} +\item{\code{percentile40}}{Below 40th percentile poverty line} +\item{\code{percentile60}}{Below 60th percentile poverty line} +\item{\code{percentile80}}{Below 80th percentile poverty line} +} +} +\source{ +\url{https://www.povertyindex.org} +} +\usage{ +ppiBFA2023 +} +\description{ +Poverty Probability Index (PPI) lookup table for Burkina Faso for 2023 +} +\examples{ + # Access Burkina Faso PPI table + ppiBFA2023 + + # Given a specific PPI score (from 0 - 100), get the row of poverty + # probabilities from PPI table it corresponds to + ppiScore <- 50 + ppiBFA2023[ppiBFA2023$score == ppiScore, ] + + # Use subset() function to get the row of poverty probabilities corresponding + # to specific PPI score + ppiScore <- 50 + subset(ppiBFA2023, score == ppiScore) + + # Given a specific PPI score (from 0 - 100), get a poverty probability + # based on a specific poverty definition. In this example, the national + # poverty line definition + ppiScore <- 50 + ppiBFA2023[ppiBFA2023$score == ppiScore, "nl100"] + +} +\keyword{datasets} diff --git a/man/ppiBGD2013.Rd b/man/ppiBGD2013.Rd index 070244ea..60c540ea 100644 --- a/man/ppiBGD2013.Rd +++ b/man/ppiBGD2013.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiBGD2013} \alias{ppiBGD2013} diff --git a/man/ppiBOL2015.Rd b/man/ppiBOL2015.Rd index f1a126e2..44f49d0e 100644 --- a/man/ppiBOL2015.Rd +++ b/man/ppiBOL2015.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/00_bolivia.R \docType{data} \name{ppiBOL2015} \alias{ppiBOL2015} @@ -8,15 +8,15 @@ A data frame with 10 columns and 101 rows: \describe{ \item{\code{score}}{PPI score} -\item{\code{nl100}}{Food poverty line} -\item{\code{nl150}}{National poverty line (100\%)} -\item{\code{nl200}}{National poverty line (150\%)} -\item{\code{half100}}{National poverty line (200\%)} -\item{\code{ppp125}}{Poorest half below 100\% national} -\item{\code{ppp200}}{Below $1.25 per day purchasing power parity (2005)} -\item{\code{ppp250}}{Below $2.00 per day purchasing power parity (2005)} -\item{\code{ppp500}}{Below $2.50 per day purchasing power parity (2005)} -\item{\code{ppp844}}{Below $5.00 per day purchasing power parity (2005)} +\item{\code{nl100}}{National poverty line (100\%)} +\item{\code{nl150}}{National poverty line (150\%)} +\item{\code{nl200}}{National poverty line (200\%)} +\item{\code{half100}}{Poorest half below 100\% national} +\item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} +\item{\code{ppp200}}{Below $2.00 per day purchasing power parity (2005)} +\item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} +\item{\code{ppp500}}{Below $5.00 per day purchasing power parity (2005)} +\item{\code{ppp844}}{Below $8.44 per day purchasing power parity (2005)} } } \source{ @@ -46,7 +46,7 @@ Poverty Probability Index (PPI) lookup table for Bolivia # based on a specific poverty definition. In this example, the food # poverty line definition ppiScore <- 50 - ppiBOL2015[ppiBOL2015$score == ppiScore, "nlFood"] + ppiBOL2015[ppiBOL2015$score == ppiScore, "nl100"] } \keyword{datasets} diff --git a/man/ppiBOL2023.Rd b/man/ppiBOL2023.Rd new file mode 100644 index 00000000..4902f99c --- /dev/null +++ b/man/ppiBOL2023.Rd @@ -0,0 +1,57 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/00_bolivia.R +\docType{data} +\name{ppiBOL2023} +\alias{ppiBOL2023} +\title{Poverty Probability Index (PPI) lookup table for Bolivia for 2023} +\format{ +A data frame with 15 columns and 101 rows: +\describe{ +\item{\code{score}}{PPI score} +\item{\code{nl100}}{National poverty line (100\%)} +\item{\code{nl_extreme}}{National poverty line (extreme)} +\item{\code{nl150}}{National poverty line (150\%)} +\item{\code{nl200}}{National poverty line (200\%)} +\item{\code{ppp190}}{Below $1.25 per day purchasing power parity (2011)} +\item{\code{ppp320}}{Below $1.25 per day purchasing power parity (2011)} +\item{\code{ppp550}}{Below $2.00 per day purchasing power parity (2011)} +\item{\code{ppp215}}{Below $2.15 per day purchasing power parity (2017)} +\item{\code{ppp365}}{Below $3.65 per day purchasing power parity (2017)} +\item{\code{ppp685}}{Below $6.85 per day purchasing power parity (2017)} +\item{\code{percentile20}}{Below 20th percentile poverty line} +\item{\code{percentile40}}{Below 40th percentile poverty line} +\item{\code{percentile60}}{Below 60th percentile poverty line} +\item{\code{percentile80}}{Below 80th percentile poverty line} +} +} +\source{ +\url{https://www.povertyindex.org} +} +\usage{ +ppiBOL2023 +} +\description{ +Poverty Probability Index (PPI) lookup table for Bolivia for 2023 +} +\examples{ + # Access Bolivia PPI table + ppiBOL2023 + + # Given a specific PPI score (from 0 - 100), get the row of poverty + # probabilities from PPI table it corresponds to + ppiScore <- 50 + ppiBOL2023[ppiBOL2023$score == ppiScore, ] + + # Use subset() function to get the row of poverty probabilities corresponding + # to specific PPI score + ppiScore <- 50 + subset(ppiBOL2023, score == ppiScore) + + # Given a specific PPI score (from 0 - 100), get a poverty probability + # based on a specific poverty definition. In this example, the food + # poverty line definition + ppiScore <- 50 + ppiBOL2023[ppiBOL2023$score == ppiScore, "nl100"] + +} +\keyword{datasets} diff --git a/man/ppiBRA2010.Rd b/man/ppiBRA2010.Rd index d967d7cc..e41a5db9 100644 --- a/man/ppiBRA2010.Rd +++ b/man/ppiBRA2010.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiBRA2010} \alias{ppiBRA2010} diff --git a/man/ppiCIV2013.Rd b/man/ppiCIV2013.Rd index 91e679fb..9ea08182 100644 --- a/man/ppiCIV2013.Rd +++ b/man/ppiCIV2013.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiCIV2013} \alias{ppiCIV2013} diff --git a/man/ppiCIV2018.Rd b/man/ppiCIV2018.Rd index 30b1c1fc..ba9f2359 100644 --- a/man/ppiCIV2018.Rd +++ b/man/ppiCIV2018.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiCIV2018} \alias{ppiCIV2018} diff --git a/man/ppiCMR2013.Rd b/man/ppiCMR2013.Rd index c57ffae1..5b574212 100644 --- a/man/ppiCMR2013.Rd +++ b/man/ppiCMR2013.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiCMR2013} \alias{ppiCMR2013} diff --git a/man/ppiCOL2012.Rd b/man/ppiCOL2012.Rd index 629906ad..8a7a2fea 100644 --- a/man/ppiCOL2012.Rd +++ b/man/ppiCOL2012.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiCOL2012} \alias{ppiCOL2012} diff --git a/man/ppiCOL2012_a.Rd b/man/ppiCOL2012_a.Rd index 2b466068..adceb936 100644 --- a/man/ppiCOL2012_a.Rd +++ b/man/ppiCOL2012_a.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiCOL2012_a} \alias{ppiCOL2012_a} diff --git a/man/ppiCOL2018.Rd b/man/ppiCOL2018.Rd index 6282626a..70a62cc6 100644 --- a/man/ppiCOL2018.Rd +++ b/man/ppiCOL2018.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiCOL2018} \alias{ppiCOL2018} @@ -16,16 +16,16 @@ A data frame with 19 columns and 101 rows: \item{\code{ppp320}}{Below $3.20 per day purchasing power parity (2011)} \item{\code{ppp550}}{Below $5.50 per day purchasing power parity (2011)} \item{\code{ppp800}}{Below $8.00 per day purchasing power parity (2011)} -\item{\code{ppp1100}}{Below $15.00 per day purchasing power parity (2011)} -\item{\code{ppp1500}}{Below $21.70 per day purchasing power parity (2011)} -\item{\code{ppp2170}}{Below $1.25 per day purchasing power parity (2005)} -\item{\code{ppp125}}{Below $2.50 per day purchasing power parity (2005)} -\item{\code{ppp250}}{Below $5.00 per day purchasing power parity (2005)} -\item{\code{ppp500}}{Below 20th percentile poverty line} -\item{\code{percentile20}}{Below 40th percentile poverty line} -\item{\code{percentile40}}{Below 60th percentile poverty line} -\item{\code{percentile60}}{Below 80th percentile poverty line} -\item{\code{percentile80}}{NA} +\item{\code{ppp1100}}{Below $11.00 per day purchasing power parity (2011)} +\item{\code{ppp1500}}{Below $15.00 per day purchasing power parity (2011)} +\item{\code{ppp2170}}{Below $21.70 per day purchasing power parity (2011)} +\item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} +\item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} +\item{\code{ppp500}}{Below $5.00 per day purchasing power parity (2005)} +\item{\code{percentile20}}{Below 20th percentile poverty line} +\item{\code{percentile40}}{Below 40th percentile poverty line} +\item{\code{percentile60}}{Below 60th percentile poverty line} +\item{\code{percentile80}}{Below 80th percentile poverty line} } } \source{ diff --git a/man/ppiDOM2010.Rd b/man/ppiDOM2010.Rd index 167e1b9c..4a263e9f 100644 --- a/man/ppiDOM2010.Rd +++ b/man/ppiDOM2010.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiDOM2010} \alias{ppiDOM2010} diff --git a/man/ppiDOM2018.Rd b/man/ppiDOM2018.Rd index ba32e213..9b33189f 100644 --- a/man/ppiDOM2018.Rd +++ b/man/ppiDOM2018.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiDOM2018} \alias{ppiDOM2018} diff --git a/man/ppiECU2015.Rd b/man/ppiECU2015.Rd index 79a21716..f56ed64b 100644 --- a/man/ppiECU2015.Rd +++ b/man/ppiECU2015.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/00_ecuador.R \docType{data} \name{ppiECU2015} \alias{ppiECU2015} diff --git a/man/ppiECU2022.Rd b/man/ppiECU2022.Rd new file mode 100644 index 00000000..4689c88e --- /dev/null +++ b/man/ppiECU2022.Rd @@ -0,0 +1,62 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/00_ecuador.R +\docType{data} +\name{ppiECU2022} +\alias{ppiECU2022} +\title{Poverty Probability Index (PPI) lookup table for Ecuador for 2022} +\format{ +A data frame with 20 columns and 101 rows: +\describe{ +\item{\code{score}}{PPI score} +\item{\code{nl100}}{National poverty line (100\%)} +\item{\code{nl_extreme}}{National poverty line (extreme)} +\item{\code{nl150}}{National poverty line (150\%)} +\item{\code{nl200}}{National poverty line (200\%)} +\item{\code{ppp215}}{Below $2.15 per day purchasing power parity (2017)} +\item{\code{ppp365}}{Below $3.65 per day purchasing power parity (2017)} +\item{\code{ppp685}}{Below $6.85 per day purchasing power parity (2017)} +\item{\code{ppp100}}{Below $1.00 per day purchasing power parity (2011)} +\item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)} +\item{\code{ppp320}}{Below $3.20 per day purchasing power parity (2011)} +\item{\code{ppp550}}{Below $5.50 per day purchasing power parity (2011)} +\item{\code{ppp800}}{Below $8.00 per day purchasing power parity (2011)} +\item{\code{ppp1100}}{Below $11.00 per day purchasing power parity (2011)} +\item{\code{ppp1500}}{Below $15.00 per day purchasing power parity (2011)} +\item{\code{ppp2170}}{Below $21.70 per day purchasing power parity (2011)} +\item{\code{percentile20}}{Below 20th percentile poverty line} +\item{\code{percentile40}}{Below 40th percentile poverty line} +\item{\code{percentile60}}{Below 60th percentile poverty line} +\item{\code{percentile80}}{Below 80th percentile poverty line} +} +} +\source{ +\url{https://www.povertyindex.org} +} +\usage{ +ppiECU2022 +} +\description{ +Poverty Probability Index (PPI) lookup table for Ecuador for 2022 +} +\examples{ + # Access Ecuador PPI table + ppiECU2015 + + # Given a specific PPI score (from 0 - 100), get the row of poverty + # probabilities from PPI table it corresponds to + ppiScore <- 50 + ppiECU2015[ppiECU2015$score == ppiScore, ] + + # Use subset() function to get the row of poverty probabilities corresponding + # to specific PPI score + ppiScore <- 50 + subset(ppiECU2015, score == ppiScore) + + # Given a specific PPI score (from 0 - 100), get a poverty probability + # based on a specific poverty definition. In this example, the national + # poverty line definition + ppiScore <- 50 + ppiECU2015[ppiECU2015$score == ppiScore, "nl100"] + +} +\keyword{datasets} diff --git a/man/ppiEGY2010.Rd b/man/ppiEGY2010.Rd index 0626ea2f..4696b9d0 100644 --- a/man/ppiEGY2010.Rd +++ b/man/ppiEGY2010.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiEGY2010} \alias{ppiEGY2010} diff --git a/man/ppiETH2016.Rd b/man/ppiETH2016.Rd index 2f3acee9..53536580 100644 --- a/man/ppiETH2016.Rd +++ b/man/ppiETH2016.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/00_ethiopia.R \docType{data} \name{ppiETH2016} \alias{ppiETH2016} diff --git a/man/ppiETH2023.Rd b/man/ppiETH2023.Rd new file mode 100644 index 00000000..736ac7e3 --- /dev/null +++ b/man/ppiETH2023.Rd @@ -0,0 +1,62 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/00_ethiopia.R +\docType{data} +\name{ppiETH2023} +\alias{ppiETH2023} +\title{Poverty Probability Index (PPI) lookup table for Ethiopia for 2023} +\format{ +A data frame with 20 columns and 101 rows: +\describe{ +\item{\code{score}}{PPI score} +\item{\code{nl100}}{National poverty line (100\%)} +\item{\code{nl_extreme}}{National poverty line (extreme)} +\item{\code{nl150}}{National poverty line (150\%)} +\item{\code{nl200}}{National poverty line (200\%)} +\item{\code{ppp100}}{Below $1.00 per day purchasing power parity (2011)} +\item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)} +\item{\code{ppp320}}{Below $3.20 per day purchasing power parity (2011)} +\item{\code{ppp550}}{Below $5.50 per day purchasing power parity (2011)} +\item{\code{ppp800}}{Below $8.00 per day purchasing power parity (2011)} +\item{\code{ppp1100}}{Below $11.00 per day purchasing power parity (2011)} +\item{\code{ppp1500}}{Below $15.00 per day purchasing power parity (2011)} +\item{\code{ppp2170}}{Below $21.70 per day purchasing power parity (2011)} +\item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} +\item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} +\item{\code{ppp500}}{Below $5.00 per day purchasing power parity (2005)} +\item{\code{percentile20}}{Below 20th percentile poverty line} +\item{\code{percentile40}}{Below 40th percentile poverty line} +\item{\code{percentile60}}{Below 60th percentile poverty line} +\item{\code{percentile80}}{Below 80th percentile poverty line} +} +} +\source{ +\url{https://www.povertyindex.org} +} +\usage{ +ppiETH2023 +} +\description{ +Poverty Probability Index (PPI) lookup table for Ethiopia for 2023 +} +\examples{ + # Access Ethiopia PPI table + ppiETH2023 + + # Given a specific PPI score (from 0 - 100), get the row of poverty + # probabilities from PPI table it corresponds to + ppiScore <- 50 + ppiETH2023[ppiETH2023$score == ppiScore, ] + + # Use subset() function to get the row of poverty probabilities corresponding + # to specific PPI score + ppiScore <- 50 + subset(ppiETH2023, score == ppiScore) + + # Given a specific PPI score (from 0 - 100), get a poverty probability + # based on a specific poverty definition. In this example, the national + # poverty line definition + ppiScore <- 50 + ppiETH2023[ppiETH2023$score == ppiScore, "nl100"] + +} +\keyword{datasets} diff --git a/man/ppiFJI2014.Rd b/man/ppiFJI2014.Rd index ff3512aa..64fc0c4f 100644 --- a/man/ppiFJI2014.Rd +++ b/man/ppiFJI2014.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiFJI2014} \alias{ppiFJI2014} diff --git a/man/ppiGHA2015.Rd b/man/ppiGHA2015.Rd index e9ce9635..a2f1ec2e 100644 --- a/man/ppiGHA2015.Rd +++ b/man/ppiGHA2015.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiGHA2015} \alias{ppiGHA2015} diff --git a/man/ppiGHA2015_a.Rd b/man/ppiGHA2015_a.Rd index bf7d6370..8626ced5 100644 --- a/man/ppiGHA2015_a.Rd +++ b/man/ppiGHA2015_a.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiGHA2015_a} \alias{ppiGHA2015_a} diff --git a/man/ppiGHA2015_b.Rd b/man/ppiGHA2015_b.Rd index beda4ad4..4be93bea 100644 --- a/man/ppiGHA2015_b.Rd +++ b/man/ppiGHA2015_b.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiGHA2015_b} \alias{ppiGHA2015_b} diff --git a/man/ppiGHA2019.Rd b/man/ppiGHA2019.Rd index 94a98f22..1d82ac06 100644 --- a/man/ppiGHA2019.Rd +++ b/man/ppiGHA2019.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiGHA2019} \alias{ppiGHA2019} diff --git a/man/ppiGTM2016.Rd b/man/ppiGTM2016.Rd index fdbf609b..11d52a81 100644 --- a/man/ppiGTM2016.Rd +++ b/man/ppiGTM2016.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/00_guatemala.R \docType{data} \name{ppiGTM2016} \alias{ppiGTM2016} diff --git a/man/ppiGTM2023.Rd b/man/ppiGTM2023.Rd new file mode 100644 index 00000000..3e7896fe --- /dev/null +++ b/man/ppiGTM2023.Rd @@ -0,0 +1,53 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/00_guatemala.R +\docType{data} +\name{ppiGTM2023} +\alias{ppiGTM2023} +\title{Poverty Probability Index (PPI) lookup table for Guatemala for 2023} +\format{ +A data frame with 17 columns and 101 rows: +\describe{ +\item{\code{score}}{PPI score} +\item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)} +\item{\code{ppp320}}{Below $3.20 per day purchasing power parity (2011)} +\item{\code{ppp550}}{Below $5.50 per day purchasing power parity (2011)} +\item{\code{ppp215}}{Below $2.15 per day purchasing power parity (2017)} +\item{\code{ppp365}}{Below $3.65 per day purchasing power parity (2017)} +\item{\code{ppp685}}{Below $6.85 per day purchasing power parity (2017)} +\item{\code{percentile20}}{Below 20th percentile poverty line} +\item{\code{percentile40}}{Below 40th percentile poverty line} +\item{\code{percentile60}}{Below 60th percentile poverty line} +\item{\code{percentile80}}{Below 80th percentile poverty line} +} +} +\source{ +\url{https://www.povertyindex.org} +} +\usage{ +ppiGTM2023 +} +\description{ +Poverty Probability Index (PPI) lookup table for Guatemala for 2023 +} +\examples{ + # Access Guatemala PPI table + ppiGTM2023 + + # Given a specific PPI score (from 0 - 100), get the row of poverty + # probabilities from PPI table it corresponds to + ppiScore <- 50 + ppiGTM2023[ppiGTM2023$score == ppiScore, ] + + # Use subset() function to get the row of poverty probabilities corresponding + # to specific PPI score + ppiScore <- 50 + subset(ppiGTM2023, score == ppiScore) + + # Given a specific PPI score (from 0 - 100), get a poverty probability + # based on a specific poverty definition. In this example, the national + # poverty line definition + ppiScore <- 50 + ppiGTM2023[ppiGTM2023$score == ppiScore, "ppp190"] + +} +\keyword{datasets} diff --git a/man/ppiHND2010.Rd b/man/ppiHND2010.Rd index fa8e3df8..2122ab85 100644 --- a/man/ppiHND2010.Rd +++ b/man/ppiHND2010.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/00_honduras.R \docType{data} \name{ppiHND2010} \alias{ppiHND2010} diff --git a/man/ppiHND2023.Rd b/man/ppiHND2023.Rd new file mode 100644 index 00000000..953bbc3c --- /dev/null +++ b/man/ppiHND2023.Rd @@ -0,0 +1,60 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/00_honduras.R +\docType{data} +\name{ppiHND2023} +\alias{ppiHND2023} +\title{Poverty Probability Index (PPI) lookup table for Honduras for 2023} +\format{ +A data frame with 18 columns and 101 rows: +\describe{ +\item{\code{score}}{PPI score} +\item{\code{nl100}}{National poverty line (100\%)} +\item{\code{nl_extreme}}{National poverty line (extreme)} +\item{\code{ppp100}}{Below $1.00 per day purchasing power parity (2011)} +\item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)} +\item{\code{ppp320}}{Below $3.20 per day purchasing power parity (2011)} +\item{\code{ppp550}}{Below $5.50 per day purchasing power parity (2011)} +\item{\code{ppp800}}{Below $8.00 per day purchasing power parity (2011)} +\item{\code{ppp1100}}{Below $11.00 per day purchasing power parity (2011)} +\item{\code{ppp1500}}{Below $15.00 per day purchasing power parity (2011)} +\item{\code{ppp2170}}{Below $21.70 per day purchasing power parity (2011)} +\item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} +\item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} +\item{\code{ppp500}}{Below $5.00 per day purchasing power parity (2005)} +\item{\code{percentile20}}{Below 20th percentile poverty line} +\item{\code{percentile40}}{Below 40th percentile poverty line} +\item{\code{percentile60}}{Below 60th percentile poverty line} +\item{\code{percentile80}}{Below 80th percentile poverty line} +} +} +\source{ +\url{https://www.povertyindex.org} +} +\usage{ +ppiHND2023 +} +\description{ +Poverty Probability Index (PPI) lookup table for Honduras for 2023 +} +\examples{ + # Access Honduras PPI table + ppiHND2023 + + # Given a specific PPI score (from 0 - 100), get the row of poverty + # probabilities from PPI table it corresponds to + ppiScore <- 50 + ppiHND2023[ppiHND2023$score == ppiScore, ] + + # Use subset() function to get the row of poverty probabilities corresponding + # to specific PPI score + ppiScore <- 50 + subset(ppiHND2023, score == ppiScore) + + # Given a specific PPI score (from 0 - 100), get a poverty probability + # based on a specific poverty definition. In this example, the USAID + # extreme poverty definition + ppiScore <- 50 + ppiHND2023[ppiHND2023$score == ppiScore, "nl_extreme"] + +} +\keyword{datasets} diff --git a/man/ppiHTI2016.Rd b/man/ppiHTI2016.Rd index 21f81892..4b275de7 100644 --- a/man/ppiHTI2016.Rd +++ b/man/ppiHTI2016.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiHTI2016} \alias{ppiHTI2016} diff --git a/man/ppiIDN2012.Rd b/man/ppiIDN2012.Rd index bfbaf08e..d6baf402 100644 --- a/man/ppiIDN2012.Rd +++ b/man/ppiIDN2012.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/00_indonesia.R \docType{data} \name{ppiIDN2012} \alias{ppiIDN2012} diff --git a/man/ppiIDN2012_a.Rd b/man/ppiIDN2012_a.Rd index 70214d96..087aaad3 100644 --- a/man/ppiIDN2012_a.Rd +++ b/man/ppiIDN2012_a.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/00_indonesia.R \docType{data} \name{ppiIDN2012_a} \alias{ppiIDN2012_a} @@ -47,7 +47,7 @@ poverty definitions # based on a specific poverty definition. In this example, the USAID # extreme poverty definition ppiScore <- 50 - ppiIDN2012_a[ppiIDN2012_a$score == ppiScore, "extreme"] + ppiIDN2012_a[ppiIDN2012_a$score == ppiScore, "nl100"] } \keyword{datasets} diff --git a/man/ppiIDN2020.Rd b/man/ppiIDN2020.Rd index c67b1fbc..d5de771a 100644 --- a/man/ppiIDN2020.Rd +++ b/man/ppiIDN2020.Rd @@ -1,11 +1,11 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/00_indonesia.R \docType{data} \name{ppiIDN2020} \alias{ppiIDN2020} \title{Poverty Probability Index (PPI) lookup table for Indonesia} \format{ -A data frame with 20 columns and 100 rows: +A data frame with 20 columns and 101 rows: \describe{ \item{\code{score}}{PPI score} \item{\code{nl100}}{National poverty line (100\%)} @@ -56,7 +56,7 @@ Poverty Probability Index (PPI) lookup table for Indonesia # based on a specific poverty definition. In this example, the USAID # extreme poverty definition ppiScore <- 50 - ppiIDN2020[ppiIDN2020$score == ppiScore, "extreme"] + ppiIDN2020[ppiIDN2020$score == ppiScore, "nl100"] } \keyword{datasets} diff --git a/man/ppiIDN2023.Rd b/man/ppiIDN2023.Rd new file mode 100644 index 00000000..221c8630 --- /dev/null +++ b/man/ppiIDN2023.Rd @@ -0,0 +1,52 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/00_indonesia.R +\docType{data} +\name{ppiIDN2023} +\alias{ppiIDN2023} +\title{Poverty Probability Index (PPI) lookup table for Indonesia for 2023} +\format{ +A data frame with 10 columns and 101 rows: +\describe{ +\item{\code{score}}{PPI score} +\item{\code{nl100}}{National poverty line (100\%)} +\item{\code{ppp365}}{Below $3.65 per day purchasing power parity (2017)} +\item{\code{ppp685}}{Below $6.85 per day purchasing power parity (2017)} +\item{\code{ppp320}}{Below $3.20 per day purchasing power parity (2011)} +\item{\code{ppp550}}{Below $5.50 per day purchasing power parity (2011)} +\item{\code{percentile20}}{Below 20th percentile poverty line} +\item{\code{percentile40}}{Below 40th percentile poverty line} +\item{\code{percentile60}}{Below 50th percentile poverty line} +\item{\code{percentile80}}{Below 60th percentile poverty line} +} +} +\source{ +\url{https://www.povertyindex.org} +} +\usage{ +ppiIDN2023 +} +\description{ +Poverty Probability Index (PPI) lookup table for Indonesia for 2023 +} +\examples{ + # Access Indonesia PPI table + ppiIDN2023 + + # Given a specific PPI score (from 0 - 100), get the row of poverty + # probabilities from PPI table it corresponds to + ppiScore <- 50 + ppiIDN2023[ppiIDN2023$score == ppiScore, ] + + # Use subset() function to get the row of poverty probabilities corresponding + # to specific PPI score + ppiScore <- 50 + subset(ppiIDN2023, score == ppiScore) + + # Given a specific PPI score (from 0 - 100), get a poverty probability + # based on a specific poverty definition. In this example, the USAID + # extreme poverty definition + ppiScore <- 50 + ppiIDN2023[ppiIDN2023$score == ppiScore, "nl100"] + +} +\keyword{datasets} diff --git a/man/ppiIND2016_r59.Rd b/man/ppiIND2016_r59.Rd index f4e5d696..494d637c 100644 --- a/man/ppiIND2016_r59.Rd +++ b/man/ppiIND2016_r59.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiIND2016_r59} \alias{ppiIND2016_r59} diff --git a/man/ppiIND2016_r62.Rd b/man/ppiIND2016_r62.Rd index 37150a61..97c78581 100644 --- a/man/ppiIND2016_r62.Rd +++ b/man/ppiIND2016_r62.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiIND2016_r62} \alias{ppiIND2016_r62} diff --git a/man/ppiIND2016_r66.Rd b/man/ppiIND2016_r66.Rd index 30b46e50..ee0e0253 100644 --- a/man/ppiIND2016_r66.Rd +++ b/man/ppiIND2016_r66.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiIND2016_r66} \alias{ppiIND2016_r66} diff --git a/man/ppiIND2016_r68.Rd b/man/ppiIND2016_r68.Rd index b83e219c..12fb0a19 100644 --- a/man/ppiIND2016_r68.Rd +++ b/man/ppiIND2016_r68.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiIND2016_r68} \alias{ppiIND2016_r68} diff --git a/man/ppiJOR2010.Rd b/man/ppiJOR2010.Rd index ef1ce959..eba91a42 100644 --- a/man/ppiJOR2010.Rd +++ b/man/ppiJOR2010.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiJOR2010} \alias{ppiJOR2010} diff --git a/man/ppiKEN2011.Rd b/man/ppiKEN2011.Rd index 7a4654a7..1f3ae3d7 100644 --- a/man/ppiKEN2011.Rd +++ b/man/ppiKEN2011.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiKEN2011} \alias{ppiKEN2011} diff --git a/man/ppiKEN2018.Rd b/man/ppiKEN2018.Rd index 3c0859fc..0dc241eb 100644 --- a/man/ppiKEN2018.Rd +++ b/man/ppiKEN2018.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiKEN2018} \alias{ppiKEN2018} diff --git a/man/ppiKGZ2015.Rd b/man/ppiKGZ2015.Rd index be1b9dd9..c1254791 100644 --- a/man/ppiKGZ2015.Rd +++ b/man/ppiKGZ2015.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiKGZ2015} \alias{ppiKGZ2015} diff --git a/man/ppiKHM2015.Rd b/man/ppiKHM2015.Rd index c9b51e16..355d04a2 100644 --- a/man/ppiKHM2015.Rd +++ b/man/ppiKHM2015.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/00_cambodia.R \docType{data} \name{ppiKHM2015} \alias{ppiKHM2015} diff --git a/man/ppiKHM2015_gov.Rd b/man/ppiKHM2015_gov.Rd index 59215ad0..59205c54 100644 --- a/man/ppiKHM2015_gov.Rd +++ b/man/ppiKHM2015_gov.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/00_cambodia.R \docType{data} \name{ppiKHM2015_gov} \alias{ppiKHM2015_gov} diff --git a/man/ppiKHM2015_wb.Rd b/man/ppiKHM2015_wb.Rd index 59b66d0a..256b8069 100644 --- a/man/ppiKHM2015_wb.Rd +++ b/man/ppiKHM2015_wb.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/00_cambodia.R \docType{data} \name{ppiKHM2015_wb} \alias{ppiKHM2015_wb} diff --git a/man/ppiKHM2023.Rd b/man/ppiKHM2023.Rd new file mode 100644 index 00000000..6efbae64 --- /dev/null +++ b/man/ppiKHM2023.Rd @@ -0,0 +1,56 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/00_cambodia.R +\docType{data} +\name{ppiKHM2023} +\alias{ppiKHM2023} +\title{Poverty Probability Index (PPI) lookup table for Cambodia for 2023} +\format{ +A data frame with 14 columns and 101 rows: +\describe{ +\item{\code{score}}{PPI score} +\item{\code{nl100}}{National poverty line (100\%)} +\item{\code{nl150}}{National poverty line (150\%)} +\item{\code{nl200}}{National poverty line (200\%)} +\item{\code{ppp550}}{Below $3.20 per day purchasing power parity (2011)} +\item{\code{ppp800}}{Below $3.20 per day purchasing power parity (2011)} +\item{\code{ppp1100}}{Below $11.00 per day purchasing power parity (2011)} +\item{\code{ppp1500}}{Below $15.00 per day purchasing power parity (2011)} +\item{\code{ppp2170}}{Below $21.70 per day purchasing power parity (2011)} +\item{\code{ppp685}}{Below $6.85 per day purchasing power parity (2017)} +\item{\code{percentile20}}{Below 20th percentile poverty line} +\item{\code{percentile40}}{Below 40th percentile poverty line} +\item{\code{percentile60}}{Below 60th percentile poverty line} +\item{\code{percentile80}}{Below 80th percentile poverty line} +} +} +\source{ +\url{https://www.povertyindex.org} +} +\usage{ +ppiKHM2023 +} +\description{ +Poverty Probability Index (PPI) lookup table for Cambodia for 2023 +} +\examples{ + # Access Cambodia PPI table + ppiKHM2023 + + # Given a specific PPI score (from 0 - 100), get the row of poverty + # probabilities from PPI table it corresponds to + ppiScore <- 50 + ppiKHM2023[ppiKHM2023$score == ppiScore, ] + + # Use subset() function to get the row of poverty probabilities corresponding + # to specific PPI score + ppiScore <- 50 + subset(ppiKHM2023, score == ppiScore) + + # Given a specific PPI score (from 0 - 100), get a poverty probability + # based on a specific poverty definition. In this example, the national + # poverty line definition + ppiScore <- 50 + ppiKHM2023[ppiKHM2023$score == ppiScore, "nl100"] + +} +\keyword{datasets} diff --git a/man/ppiLKA2016.Rd b/man/ppiLKA2016.Rd index 63e81d8d..f54b2289 100644 --- a/man/ppiLKA2016.Rd +++ b/man/ppiLKA2016.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiLKA2016} \alias{ppiLKA2016} diff --git a/man/ppiMAR2013.Rd b/man/ppiMAR2013.Rd index 87a0759a..29e9719c 100644 --- a/man/ppiMAR2013.Rd +++ b/man/ppiMAR2013.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiMAR2013} \alias{ppiMAR2013} diff --git a/man/ppiMDG2015.Rd b/man/ppiMDG2015.Rd index 6f3df3e1..2250d5d5 100644 --- a/man/ppiMDG2015.Rd +++ b/man/ppiMDG2015.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiMDG2015} \alias{ppiMDG2015} diff --git a/man/ppiMEX2017.Rd b/man/ppiMEX2017.Rd index ab95a82c..c58af6c2 100644 --- a/man/ppiMEX2017.Rd +++ b/man/ppiMEX2017.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiMEX2017} \alias{ppiMEX2017} diff --git a/man/ppiMEX2017_a.Rd b/man/ppiMEX2017_a.Rd index 8a3c173e..d3b1dd82 100644 --- a/man/ppiMEX2017_a.Rd +++ b/man/ppiMEX2017_a.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiMEX2017_a} \alias{ppiMEX2017_a} diff --git a/man/ppiMLI2010.Rd b/man/ppiMLI2010.Rd index 1abe2224..10e1ff24 100644 --- a/man/ppiMLI2010.Rd +++ b/man/ppiMLI2010.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiMLI2010} \alias{ppiMLI2010} diff --git a/man/ppiMMR2012.Rd b/man/ppiMMR2012.Rd index 51e3180a..a6d66beb 100644 --- a/man/ppiMMR2012.Rd +++ b/man/ppiMMR2012.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiMMR2012} \alias{ppiMMR2012} diff --git a/man/ppiMMR2019.Rd b/man/ppiMMR2019.Rd index ae93f11c..daa0954f 100644 --- a/man/ppiMMR2019.Rd +++ b/man/ppiMMR2019.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiMMR2019} \alias{ppiMMR2019} diff --git a/man/ppiMNG2016.Rd b/man/ppiMNG2016.Rd index 6956bfdd..352f1187 100644 --- a/man/ppiMNG2016.Rd +++ b/man/ppiMNG2016.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiMNG2016} \alias{ppiMNG2016} diff --git a/man/ppiMOZ2013.Rd b/man/ppiMOZ2013.Rd index 497a75bc..ba40cc3a 100644 --- a/man/ppiMOZ2013.Rd +++ b/man/ppiMOZ2013.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiMOZ2013} \alias{ppiMOZ2013} diff --git a/man/ppiMOZ2019.Rd b/man/ppiMOZ2019.Rd index 31dc67bb..e82ba31c 100644 --- a/man/ppiMOZ2019.Rd +++ b/man/ppiMOZ2019.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiMOZ2019} \alias{ppiMOZ2019} diff --git a/man/ppiMWI2015.Rd b/man/ppiMWI2015.Rd index 2253794a..c265e243 100644 --- a/man/ppiMWI2015.Rd +++ b/man/ppiMWI2015.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/00_malawi.R \docType{data} \name{ppiMWI2015} \alias{ppiMWI2015} diff --git a/man/ppiMWI2015_gov.Rd b/man/ppiMWI2015_gov.Rd index b27866a4..28ca8b9f 100644 --- a/man/ppiMWI2015_gov.Rd +++ b/man/ppiMWI2015_gov.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/00_malawi.R \docType{data} \name{ppiMWI2015_gov} \alias{ppiMWI2015_gov} diff --git a/man/ppiMWI2015_pbm.Rd b/man/ppiMWI2015_pbm.Rd index 46d70cdb..a397ce19 100644 --- a/man/ppiMWI2015_pbm.Rd +++ b/man/ppiMWI2015_pbm.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/00_malawi.R \docType{data} \name{ppiMWI2015_pbm} \alias{ppiMWI2015_pbm} diff --git a/man/ppiMWI2020.Rd b/man/ppiMWI2020.Rd index 6e6b231f..4c4a435b 100644 --- a/man/ppiMWI2020.Rd +++ b/man/ppiMWI2020.Rd @@ -1,11 +1,11 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/00_malawi.R \docType{data} \name{ppiMWI2020} \alias{ppiMWI2020} \title{Poverty Probability Index (PPI) lookup table for Malawi} \format{ -A data frame with 16 columns and 100 rows: +A data frame with 16 columns and 101 rows: \describe{ \item{\code{score}}{PPI score} \item{\code{nl100}}{National poverty line (100\%)} @@ -52,7 +52,7 @@ Poverty Probability Index (PPI) lookup table for Malawi # based on a specific poverty definition. In this example, the USAID # extreme poverty definition ppiScore <- 50 - ppiMWI2020[ppiMWI2020$score == ppiScore, "extreme"] + ppiMWI2020[ppiMWI2020$score == ppiScore, "nl100"] } \keyword{datasets} diff --git a/man/ppiMWI2023.Rd b/man/ppiMWI2023.Rd new file mode 100644 index 00000000..3b33ce2e --- /dev/null +++ b/man/ppiMWI2023.Rd @@ -0,0 +1,55 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/00_malawi.R +\docType{data} +\name{ppiMWI2023} +\alias{ppiMWI2023} +\title{Poverty Probability Index (PPI) lookup table for Malawi for 2023} +\format{ +A data frame with 13 columns and 101 rows: +\describe{ +\item{\code{score}}{PPI score} +\item{\code{nl100}}{National poverty line (100\%)} +\item{\code{food}}{Food poverty line} +\item{\code{ppp215}}{Below $2.15 per day purchasing power parity (2017)} +\item{\code{ppp365}}{Below $3.65 per day purchasing power parity (2017)} +\item{\code{ppp685}}{Below $6.85 per day purchasing power parity (2017)} +\item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)} +\item{\code{ppp320}}{Below $3.20 per day purchasing power parity (2011)} +\item{\code{ppp550}}{Below $5.50 per day purchasing power parity (2011)} +\item{\code{percentile20}}{Below 20th percentile poverty line} +\item{\code{percentile40}}{Below 40th percentile poverty line} +\item{\code{percentile60}}{Below 50th percentile poverty line} +\item{\code{percentile80}}{Below 60th percentile poverty line} +} +} +\source{ +\url{https://www.povertyindex.org} +} +\usage{ +ppiMWI2023 +} +\description{ +Poverty Probability Index (PPI) lookup table for Malawi for 2023 +} +\examples{ + # Access Malawi PPI table + ppiMWI2023 + + # Given a specific PPI score (from 0 - 100), get the row of poverty + # probabilities from PPI table it corresponds to + ppiScore <- 50 + ppiMWI2023[ppiMWI2023$score == ppiScore, ] + + # Use subset() function to get the row of poverty probabilities corresponding + # to specific PPI score + ppiScore <- 50 + subset(ppiMWI2023, score == ppiScore) + + # Given a specific PPI score (from 0 - 100), get a poverty probability + # based on a specific poverty definition. In this example, the USAID + # extreme poverty definition + ppiScore <- 50 + ppiMWI2023[ppiMWI2023$score == ppiScore, "nl100"] + +} +\keyword{datasets} diff --git a/man/ppiNAM2013.Rd b/man/ppiNAM2013.Rd index ba0d5a88..a033b4e0 100644 --- a/man/ppiNAM2013.Rd +++ b/man/ppiNAM2013.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiNAM2013} \alias{ppiNAM2013} diff --git a/man/ppiNER2013.Rd b/man/ppiNER2013.Rd index 73015103..fc499193 100644 --- a/man/ppiNER2013.Rd +++ b/man/ppiNER2013.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiNER2013} \alias{ppiNER2013} diff --git a/man/ppiNGA2015.Rd b/man/ppiNGA2015.Rd index 65347919..dedeea19 100644 --- a/man/ppiNGA2015.Rd +++ b/man/ppiNGA2015.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiNGA2015} \alias{ppiNGA2015} diff --git a/man/ppiNIC2013.Rd b/man/ppiNIC2013.Rd index 65d3d77c..0e42ee46 100644 --- a/man/ppiNIC2013.Rd +++ b/man/ppiNIC2013.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiNIC2013} \alias{ppiNIC2013} diff --git a/man/ppiNPL2013.Rd b/man/ppiNPL2013.Rd index 26b002ed..b85f1b1b 100644 --- a/man/ppiNPL2013.Rd +++ b/man/ppiNPL2013.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiNPL2013} \alias{ppiNPL2013} diff --git a/man/ppiNPL2013_a.Rd b/man/ppiNPL2013_a.Rd index 0950daf9..ae2246a3 100644 --- a/man/ppiNPL2013_a.Rd +++ b/man/ppiNPL2013_a.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiNPL2013_a} \alias{ppiNPL2013_a} diff --git a/man/ppiPAK2009.Rd b/man/ppiPAK2009.Rd index 0bd39879..48122d44 100644 --- a/man/ppiPAK2009.Rd +++ b/man/ppiPAK2009.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiPAK2009} \alias{ppiPAK2009} diff --git a/man/ppiPER2012.Rd b/man/ppiPER2012.Rd index 80b5e71f..a83f8515 100644 --- a/man/ppiPER2012.Rd +++ b/man/ppiPER2012.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiPER2012} \alias{ppiPER2012} diff --git a/man/ppiPER2018.Rd b/man/ppiPER2018.Rd index 99060639..40cbe8bd 100644 --- a/man/ppiPER2018.Rd +++ b/man/ppiPER2018.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiPER2018} \alias{ppiPER2018} diff --git a/man/ppiPHL2014.Rd b/man/ppiPHL2014.Rd index 2ffff61d..9952ff99 100644 --- a/man/ppiPHL2014.Rd +++ b/man/ppiPHL2014.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/00_philippines.R \docType{data} \name{ppiPHL2014} \alias{ppiPHL2014} diff --git a/man/ppiPHL2014_a.Rd b/man/ppiPHL2014_a.Rd index b6a9b864..76709dcb 100644 --- a/man/ppiPHL2014_a.Rd +++ b/man/ppiPHL2014_a.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/00_philippines.R \docType{data} \name{ppiPHL2014_a} \alias{ppiPHL2014_a} diff --git a/man/ppiPHL2018.Rd b/man/ppiPHL2018.Rd index 3ef27d5b..9635bb00 100644 --- a/man/ppiPHL2018.Rd +++ b/man/ppiPHL2018.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/00_philippines.R \docType{data} \name{ppiPHL2018} \alias{ppiPHL2018} diff --git a/man/ppiPHL2023.Rd b/man/ppiPHL2023.Rd new file mode 100644 index 00000000..c5c4af06 --- /dev/null +++ b/man/ppiPHL2023.Rd @@ -0,0 +1,34 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/00_philippines.R +\docType{data} +\name{ppiPHL2023} +\alias{ppiPHL2023} +\title{Poverty Probability Index (PPI) lookup table for Philippines for 2023} +\format{ +A data frame with 13 columns and 101 rows: +\describe{ +\item{\code{score}}{PPI score} +\item{\code{nl100}}{National poverty line (100\%)} +\item{\code{food}}{Food poverty line} +\item{\code{ppp215}}{Below $2.15 per day purchasing power parity (2017)} +\item{\code{ppp365}}{Below $3.65 per day purchasing power parity (2017)} +\item{\code{ppp685}}{Below $6.85 per day purchasing power parity (2017)} +\item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)} +\item{\code{ppp320}}{Below $3.20 per day purchasing power parity (2011)} +\item{\code{ppp550}}{Below $5.50 per day purchasing power parity (2011)} +\item{\code{percentile20}}{Below 20th percentile poverty line} +\item{\code{percentile40}}{Below 40th percentile poverty line} +\item{\code{percentile60}}{Below 60th percentile poverty line} +\item{\code{percentile80}}{Below 80th percentile poverty line} +} +} +\source{ +\url{https://www.povertyindex.org} +} +\usage{ +ppiPHL2023 +} +\description{ +Poverty Probability Index (PPI) lookup table for Philippines for 2023 +} +\keyword{datasets} diff --git a/man/ppiPNG2023.Rd b/man/ppiPNG2023.Rd new file mode 100644 index 00000000..286c4844 --- /dev/null +++ b/man/ppiPNG2023.Rd @@ -0,0 +1,51 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/00_papua_new_guinea.R +\docType{data} +\name{ppiPNG2023} +\alias{ppiPNG2023} +\title{Poverty Probability Index (PPI) lookup table for Papua New Guinea 2023} +\format{ +A data frame with 9 columns and 101 rows: +\describe{ +\item{\code{score}}{PPI score} +\item{\code{percentile20_wi}}{Below 20th percentile wealth index} +\item{\code{percentile40_wi}}{Below 40th percentile wealth index} +\item{\code{percentile60_wi}}{Below 60th percentile wealth index} +\item{\code{percentile80_wi}}{Below 80th percentile wealth index} +\item{\code{percentile20_wi_ur}}{Below 20th percentile wealth index urban/rural} +\item{\code{percentile40_wi_ur}}{Below 40th percentile wealth index urban/rural} +\item{\code{percentile60_wi_ur}}{Below 60th percentile wealth index urban/rural} +\item{\code{percentile80_wi_ur}}{Below 80th percentile wealth index urban/rural} +} +} +\source{ +\url{https://www.povertyindex.org} +} +\usage{ +ppiPNG2023 +} +\description{ +Poverty Probability Index (PPI) lookup table for Papua New Guinea 2023 +} +\examples{ + # Access Papua New Guinea PPI table + ppiPNG2023 + + # Given a specific PPI score (from 0 - 100), get the row of poverty + # probabilities from PPI table it corresponds to + ppiScore <- 50 + ppiPNG2023[ppiPNG2023$score == ppiScore, ] + + # Use subset() function to get the row of poverty probabilities corresponding + # to specific PPI score + ppiScore <- 50 + subset(ppiPNG2023, score == ppiScore) + + # Given a specific PPI score (from 0 - 100), get a poverty probability + # based on a specific poverty definition. In this example, the USAID + # extreme poverty definition + ppiScore <- 50 + ppiPNG2023[ppiPNG2023$score == ppiScore, "percentile20_wi"] + +} +\keyword{datasets} diff --git a/man/ppiPRY2012.Rd b/man/ppiPRY2012.Rd index d056ccd3..620659be 100644 --- a/man/ppiPRY2012.Rd +++ b/man/ppiPRY2012.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiPRY2012} \alias{ppiPRY2012} diff --git a/man/ppiPSE2014.Rd b/man/ppiPSE2014.Rd index 9ac4dc3f..ac9a7c2b 100644 --- a/man/ppiPSE2014.Rd +++ b/man/ppiPSE2014.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiPSE2014} \alias{ppiPSE2014} diff --git a/man/ppiROU2009.Rd b/man/ppiROU2009.Rd index dd0a2f88..67ebab87 100644 --- a/man/ppiROU2009.Rd +++ b/man/ppiROU2009.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiROU2009} \alias{ppiROU2009} diff --git a/man/ppiRUS2010.Rd b/man/ppiRUS2010.Rd index 4b1068a8..f89e5e58 100644 --- a/man/ppiRUS2010.Rd +++ b/man/ppiRUS2010.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiRUS2010} \alias{ppiRUS2010} diff --git a/man/ppiRWA2016.Rd b/man/ppiRWA2016.Rd index d904090e..44d55e68 100644 --- a/man/ppiRWA2016.Rd +++ b/man/ppiRWA2016.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiRWA2016} \alias{ppiRWA2016} diff --git a/man/ppiRWA2019.Rd b/man/ppiRWA2019.Rd index 6a36c3bb..337d51ef 100644 --- a/man/ppiRWA2019.Rd +++ b/man/ppiRWA2019.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiRWA2019} \alias{ppiRWA2019} diff --git a/man/ppiSEN2009.Rd b/man/ppiSEN2009.Rd index 0d18f7c6..173aaa4b 100644 --- a/man/ppiSEN2009.Rd +++ b/man/ppiSEN2009.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiSEN2009} \alias{ppiSEN2009} diff --git a/man/ppiSEN2018.Rd b/man/ppiSEN2018.Rd index f7a470d1..e33a7097 100644 --- a/man/ppiSEN2018.Rd +++ b/man/ppiSEN2018.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiSEN2018} \alias{ppiSEN2018} diff --git a/man/ppiSLE2011.Rd b/man/ppiSLE2011.Rd index b4f8a67b..2b843236 100644 --- a/man/ppiSLE2011.Rd +++ b/man/ppiSLE2011.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiSLE2011} \alias{ppiSLE2011} diff --git a/man/ppiSLV2010.Rd b/man/ppiSLV2010.Rd index 2d07bdbb..812ee760 100644 --- a/man/ppiSLV2010.Rd +++ b/man/ppiSLV2010.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/00_el_salvador.R \docType{data} \name{ppiSLV2010} \alias{ppiSLV2010} diff --git a/man/ppiSLV2021.Rd b/man/ppiSLV2021.Rd new file mode 100644 index 00000000..53c7fe33 --- /dev/null +++ b/man/ppiSLV2021.Rd @@ -0,0 +1,63 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/00_el_salvador.R +\docType{data} +\name{ppiSLV2021} +\alias{ppiSLV2021} +\title{Poverty Probability Index (PPI) lookup table for El Salvador for 2021} +\format{ +A data frame with 21 columns and 101 rows: +\describe{ +\item{\code{score}}{PPI score} +\item{\code{nl100}}{National poverty line (100\%)} +\item{\code{nl_extreme}}{National poverty line (extreme)} +\item{\code{ppp215}}{Below $2.15 per day purchasing power parity (2017)} +\item{\code{ppp365}}{Below $3.65 per day purchasing power parity (2017)} +\item{\code{ppp685}}{Below $6.85 per day purchasing power parity (2017)} +\item{\code{ppp100}}{Below $1.00 per day purchasing power parity (2011)} +\item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)} +\item{\code{ppp320}}{Below $3.20 per day purchasing power parity (2011)} +\item{\code{ppp550}}{Below $5.50 per day purchasing power parity (2011)} +\item{\code{ppp800}}{Below $8.00 per day purchasing power parity (2011)} +\item{\code{ppp1100}}{Below $11.00 per day purchasing power parity (2011)} +\item{\code{ppp1500}}{Below $15.00 per day purchasing power parity (2011)} +\item{\code{ppp2170}}{Below $21.70 per day purchasing power parity (2011)} +\item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)} +\item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)} +\item{\code{ppp500}}{Below $5.00 per day purchasing power parity (2005)} +\item{\code{percentile20}}{Below 20th percentile poverty line} +\item{\code{percentile40}}{Below 40th percentile poverty line} +\item{\code{percentile60}}{Below 60th percentile poverty line} +\item{\code{percentile80}}{Below 80th percentile poverty line} +} +} +\source{ +\url{https://www.povertyindex.org} +} +\usage{ +ppiSLV2021 +} +\description{ +Poverty Probability Index (PPI) lookup table for El Salvador for 2021 +} +\examples{ + # Access El Salvador PPI table + ppiSLV2021 + + # Given a specific PPI score (from 0 - 100), get the row of poverty + # probabilities from PPI table it corresponds to + ppiScore <- 50 + ppiSLV2021[ppiSLV2021$score == ppiScore, ] + + # Use subset() function to get the row of poverty probabilities corresponding + # to specific PPI score + ppiScore <- 50 + subset(ppiSLV2021, score == ppiScore) + + # Given a specific PPI score (from 0 - 100), get a poverty probability + # based on a specific poverty definition. In this example, the USAID + # extreme poverty definition + ppiScore <- 50 + ppiSLV2021[ppiSLV2021$score == ppiScore, "nl_extreme"] + +} +\keyword{datasets} diff --git a/man/ppiSYR2010.Rd b/man/ppiSYR2010.Rd index 92225d87..42834dc6 100644 --- a/man/ppiSYR2010.Rd +++ b/man/ppiSYR2010.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiSYR2010} \alias{ppiSYR2010} diff --git a/man/ppiTGO2018.Rd b/man/ppiTGO2018.Rd index 9d30b746..96f6205f 100644 --- a/man/ppiTGO2018.Rd +++ b/man/ppiTGO2018.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/00_togo.R \docType{data} \name{ppiTGO2018} \alias{ppiTGO2018} diff --git a/man/ppiTGO2023.Rd b/man/ppiTGO2023.Rd new file mode 100644 index 00000000..22516006 --- /dev/null +++ b/man/ppiTGO2023.Rd @@ -0,0 +1,35 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/00_togo.R +\docType{data} +\name{ppiTGO2023} +\alias{ppiTGO2023} +\title{Poverty Probability Index (PPI) lookup table for Togo for 2023} +\format{ +A data frame with 14 columns and 101 rows: +\describe{ +\item{\code{score}}{PPI score} +\item{\code{nl100}}{National poverty line (100\%)} +\item{\code{nl150}}{National poverty line (150\%)} +\item{\code{nl200}}{National poverty line (200\%)} +\item{\code{ppp215}}{Below $2.15 per day purchasing power parity (2017)} +\item{\code{ppp365}}{Below $3.65 per day purchasing power parity (2017)} +\item{\code{ppp685}}{Below $6.85 per day purchasing power parity (2017)} +\item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)} +\item{\code{ppp320}}{Below $3.20 per day purchasing power parity (2011)} +\item{\code{ppp550}}{Below $5.50 per day purchasing power parity (2011)} +\item{\code{percentile20}}{Below 20th percentile poverty line} +\item{\code{percentile40}}{Below 40th percentile poverty line} +\item{\code{percentile60}}{Below 60th percentile poverty line} +\item{\code{percentile80}}{Below 80th percentile poverty line} +} +} +\source{ +\url{https://www.povertyindex.org} +} +\usage{ +ppiTGO2023 +} +\description{ +Poverty Probability Index (PPI) lookup table for Togo for 2023 +} +\keyword{datasets} diff --git a/man/ppiTJK2015.Rd b/man/ppiTJK2015.Rd index d875824c..36107091 100644 --- a/man/ppiTJK2015.Rd +++ b/man/ppiTJK2015.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiTJK2015} \alias{ppiTJK2015} diff --git a/man/ppiTLS2013.Rd b/man/ppiTLS2013.Rd index be1b9f42..7d5b0135 100644 --- a/man/ppiTLS2013.Rd +++ b/man/ppiTLS2013.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiTLS2013} \alias{ppiTLS2013} diff --git a/man/ppiTZA2016.Rd b/man/ppiTZA2016.Rd index 8c2fe284..6aaec1d8 100644 --- a/man/ppiTZA2016.Rd +++ b/man/ppiTZA2016.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiTZA2016} \alias{ppiTZA2016} diff --git a/man/ppiTZA2022.Rd b/man/ppiTZA2022.Rd index f1e2722a..56aba7bc 100644 --- a/man/ppiTZA2022.Rd +++ b/man/ppiTZA2022.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiTZA2022} \alias{ppiTZA2022} diff --git a/man/ppiUGA2015.Rd b/man/ppiUGA2015.Rd index 34d7df24..9fca3226 100644 --- a/man/ppiUGA2015.Rd +++ b/man/ppiUGA2015.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiUGA2015} \alias{ppiUGA2015} diff --git a/man/ppiUGA2022.Rd b/man/ppiUGA2022.Rd index 54e72864..51c7f66e 100644 --- a/man/ppiUGA2022.Rd +++ b/man/ppiUGA2022.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiUGA2022} \alias{ppiUGA2022} diff --git a/man/ppiVNM2009.Rd b/man/ppiVNM2009.Rd index 4b0792f2..1348a17c 100644 --- a/man/ppiVNM2009.Rd +++ b/man/ppiVNM2009.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/00_vietnam.R \docType{data} \name{ppiVNM2009} \alias{ppiVNM2009} diff --git a/man/ppiVNM2023.Rd b/man/ppiVNM2023.Rd new file mode 100644 index 00000000..281534e9 --- /dev/null +++ b/man/ppiVNM2023.Rd @@ -0,0 +1,47 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/00_vietnam.R +\docType{data} +\name{ppiVNM2023} +\alias{ppiVNM2023} +\title{Poverty Probability Index (PPI) lookup table for Vietnam for 2023} +\format{ +A data frame with 8 columns and 101 rows: +\describe{ +\item{\code{score}}{PPI score} +\item{\code{percentile20}}{Below 20th percentile poverty line} +\item{\code{percentile40}}{Below 40th percentile poverty line} +\item{\code{percentile60}}{Below 60th percentile poverty line} +\item{\code{percentile80}}{Below 80th percentile poverty line} +} +} +\source{ +\url{https://www.povertyindex.org} +} +\usage{ +ppiVNM2023 +} +\description{ +Poverty Probability Index (PPI) lookup table for Vietnam for 2023 +} +\examples{ + # Access Vietnam PPI table + ppiVNM2023 + + # Given a specific PPI score (from 0 - 100), get the row of poverty + # probabilities from PPI table it corresponds to + ppiScore <- 50 + ppiVNM2023[ppiVNM2023$score == ppiScore, ] + + # Use subset() function to get the row of poverty probabilities corresponding + # to specific PPI score + ppiScore <- 50 + subset(ppiVNM2023, score == ppiScore) + + # Given a specific PPI score (from 0 - 100), get a poverty probability + # based on a specific poverty definition. In this example, the national + # poverty line definition + ppiScore <- 50 + ppiVNM2023[ppiVNM2023$score == ppiScore, "percentile20"] + +} +\keyword{datasets} diff --git a/man/ppiYEM2009.Rd b/man/ppiYEM2009.Rd index 2332477c..79703d8e 100644 --- a/man/ppiYEM2009.Rd +++ b/man/ppiYEM2009.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiYEM2009} \alias{ppiYEM2009} diff --git a/man/ppiZAF2009.Rd b/man/ppiZAF2009.Rd index 2ca2052a..940a51ed 100644 --- a/man/ppiZAF2009.Rd +++ b/man/ppiZAF2009.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/00_south_africa.R \docType{data} \name{ppiZAF2009} \alias{ppiZAF2009} diff --git a/man/ppiZAF2023.Rd b/man/ppiZAF2023.Rd new file mode 100644 index 00000000..cad9bc68 --- /dev/null +++ b/man/ppiZAF2023.Rd @@ -0,0 +1,48 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/00_south_africa.R +\docType{data} +\name{ppiZAF2023} +\alias{ppiZAF2023} +\title{Poverty Probability Index (PPI) lookup table for South Africa for 2023} +\format{ +A data frame with 6 columns and 101 rows: +\describe{ +\item{\code{score}}{PPI score} +\item{\code{wealth_index}}{Wealth index poverty line} +\item{\code{percentile20}}{Below 20th percentile poverty line} +\item{\code{percentile40}}{Below 40th percentile poverty line} +\item{\code{percentile60}}{Below 60th percentile poverty line} +\item{\code{percentile80}}{Below 80th percentile poverty line} +} +} +\source{ +\url{https://www.povertyindex.org} +} +\usage{ +ppiZAF2023 +} +\description{ +Poverty Probability Index (PPI) lookup table for South Africa for 2023 +} +\examples{ + # Access South Africa PPI table + ppiZAF2023 + + # Given a specific PPI score (from 0 - 100), get the row of poverty + # probabilities from PPI table it corresponds to + ppiScore <- 50 + ppiZAF2023[ppiZAF2023$score == ppiScore, ] + + # Use subset() function to get the row of poverty probabilities corresponding + # to specific PPI score + ppiScore <- 50 + subset(ppiZAF2023, score == ppiScore) + + # Given a specific PPI score (from 0 - 100), get a poverty probability + # based on a specific poverty definition. In this example, the national + # poverty line definition + ppiScore <- 50 + ppiZAF2023[ppiZAF2023$score == ppiScore, "wealth_index"] + +} +\keyword{datasets} diff --git a/man/ppiZMB2013_cso.Rd b/man/ppiZMB2013_cso.Rd index 1733cc70..5af296f7 100644 --- a/man/ppiZMB2013_cso.Rd +++ b/man/ppiZMB2013_cso.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiZMB2013_cso} \alias{ppiZMB2013_cso} diff --git a/man/ppiZMB2013_got.Rd b/man/ppiZMB2013_got.Rd index 579efe6e..cbee19b9 100644 --- a/man/ppiZMB2013_got.Rd +++ b/man/ppiZMB2013_got.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiZMB2013_got} \alias{ppiZMB2013_got} diff --git a/man/ppiZMB2017.Rd b/man/ppiZMB2017.Rd index be975fd9..f6c6b54e 100644 --- a/man/ppiZMB2017.Rd +++ b/man/ppiZMB2017.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiZMB2017} \alias{ppiZMB2017} diff --git a/man/ppiZMB2017_a.Rd b/man/ppiZMB2017_a.Rd index 4669a9f5..f6cf633c 100644 --- a/man/ppiZMB2017_a.Rd +++ b/man/ppiZMB2017_a.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R +% Please edit documentation in R/04_data.R \docType{data} \name{ppiZMB2017_a} \alias{ppiZMB2017_a} diff --git a/man/ppitables.Rd b/man/ppitables.Rd index c2b52788..d4ad13a5 100644 --- a/man/ppitables.Rd +++ b/man/ppitables.Rd @@ -1,5 +1,5 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/ppitables.R +% Please edit documentation in R/01_ppitables.R \docType{package} \name{ppitables} \alias{ppitables-package} diff --git a/pkgdown/_pkgdown.yml b/pkgdown/_pkgdown.yml index ca974b77..2dfc2f4e 100644 --- a/pkgdown/_pkgdown.yml +++ b/pkgdown/_pkgdown.yml @@ -50,11 +50,15 @@ reference: - ppiAFG2012 - ppiAGO2015 - ppiBEN2012 + - ppiBEN2022_11q + - ppiBEN2022_6q - ppiBFA2011 - ppiBFA2014 - ppiBFA2017 + - ppiBFA2023 - ppiBGD2013 - ppiBOL2015 + - ppiBOL2023 - ppiBRA2010 - ppiCIV2013 - ppiCIV2018 @@ -65,19 +69,24 @@ reference: - ppiDOM2010 - ppiDOM2018 - ppiECU2015 + - ppiECU2022 - ppiEGY2010 - ppiETH2016 + - ppiETH2023 - ppiFJI2014 - ppiGHA2015 - ppiGHA2015_a - ppiGHA2015_b - ppiGHA2019 - ppiGTM2016 + - ppiGTM2023 - ppiHND2010 + - ppiHND2023 - ppiHTI2016 - ppiIDN2012 - ppiIDN2012_a - ppiIDN2020 + - ppiIDN2023 - ppiIND2016_r59 - ppiIND2016_r62 - ppiIND2016_r66 @@ -89,6 +98,7 @@ reference: - ppiKHM2015 - ppiKHM2015_gov - ppiKHM2015_wb + - ppiKHM2023 - ppiLKA2016 - ppiMAR2013 - ppiMDG2015 @@ -104,6 +114,7 @@ reference: - ppiMWI2015_gov - ppiMWI2015_pbm - ppiMWI2020 + - ppiMWI2023 - ppiNAM2013 - ppiNER2013 - ppiNGA2015 @@ -116,6 +127,8 @@ reference: - ppiPHL2014 - ppiPHL2014_a - ppiPHL2018 + - ppiPHL2023 + - ppiPNG2023 - ppiPRY2012 - ppiPSE2014 - ppiROU2009 @@ -126,8 +139,10 @@ reference: - ppiSEN2018 - ppiSLE2011 - ppiSLV2010 + - ppiSLV2021 - ppiSYR2010 - ppiTGO2018 + - ppiTGO2023 - ppiTJK2015 - ppiTLS2013 - ppiTZA2016 @@ -135,8 +150,10 @@ reference: - ppiUGA2015 - ppiUGA2022 - ppiVNM2009 + - ppiVNM2023 - ppiYEM2009 - ppiZAF2009 + - ppiZAF2023 - ppiZMB2013_cso - ppiZMB2013_got - ppiZMB2017 diff --git a/tests/testthat/test_find_table.R b/tests/testthat/test_find_table.R index 4d74315f..cd1252e6 100644 --- a/tests/testthat/test_find_table.R +++ b/tests/testthat/test_find_table.R @@ -1,15 +1,14 @@ library(ppitables) -context("Find PPI tables") test_that("output is a tibble", { - expect_is(find_table(), "tbl_df") + expect_s3_class(find_table(), "tbl_df") }) test_that("output has correct number of observations", { - expect_equal(nrow(find_table(region = "Asia")), 26) - expect_equal(nrow(find_table(region = "asia")), 0) + expect_equal(nrow(find_table(region = "Asia")), 31) + expect_warning(find_table(region = "asia")) expect_equal(nrow(find_table(region = "Asia", country = "Nepal")), 2) - expect_equal(nrow(find_table(region = "Asia", country = "nepal")), 0) + expect_warning(find_table(region = "Asia", country = "nepal")) }) diff --git a/tests/testthat/test_get_table.R b/tests/testthat/test_get_table.R index 205d4683..7de275c9 100644 --- a/tests/testthat/test_get_table.R +++ b/tests/testthat/test_get_table.R @@ -1,29 +1,27 @@ library(ppitables) -context("Get PPI tables") test_that("output is a tibble", { - expect_is(get_table(), "tbl_df") + expect_s3_class(get_table(), "tbl_df") }) test_that("output has correct number of observations", { - expect_equal(nrow(get_table(region = "Asia")), 23312) - expect_true(is.null(get_table(region = "asia"))) + expect_equal(nrow(get_table(region = "Asia")), 27958) expect_equal(nrow(get_table(region = "Asia", country = "Nepal")), 1111) - expect_true(is.null(get_table(region = "Asia", country = "nepal"))) }) -test_that("produces error", { - expect_warning(get_table(region = "asia"), - "asia not in the list of regions with PPI tables. Check region name spelling and/or check that asia is in the list of regions with PPI tables. Returning NULL results for asia") -}) - -test_that("produces error", { - expect_warning(get_table(region = "Asia", country = "philippines"), - "philippines not in the list of countries with PPI tables. Check country name spelling and/or check that philippines is in the list of countries with PPI tables. Returning NULL results for philippines") -}) - -test_that("produces error", { - expect_warning(get_table(region = "Asia", country = "Nepal", type = "ipa"), - "ipa not in the list of calculation types for the given country/ies. Check type ipa is in the list of calculation types for the given country/ies. Returning NULL results for type ipa") -}) +# test_that("produces error", { +# expect_warning( +# get_table(region = "asia"), +# "asia not in the list of regions with PPI tables. Check region name spelling and/or check that asia is in the list of regions with PPI tables. Returning NULL results for asia") +# }) +# +# test_that("produces error", { +# expect_warning(get_table(region = "Asia", country = "philippines"), +# "philippines not in the list of countries with PPI tables. Check country name spelling and/or check that philippines is in the list of countries with PPI tables. Returning NULL results for philippines") +# }) +# +# test_that("produces error", { +# expect_warning(get_table(region = "Asia", country = "Nepal", type = "ipa"), +# "ipa not in the list of calculation types for the given country/ies. Check type ipa is in the list of calculation types for the given country/ies. Returning NULL results for type ipa") +# })