Skip to content

Commit 7441738

Browse files
Merge pull request #67 from katilingban/v0.5.4
V0.5.4; fixes #66
2 parents 90a81f2 + b50fb11 commit 7441738

File tree

125 files changed

+952
-478
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+952
-478
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Package: ppitables
22
Type: Package
33
Title: Lookup Tables to Generate Poverty Likelihoods and Rates using the Poverty
44
Probability Index (PPI)
5-
Version: 0.5.3
5+
Version: 0.5.4
66
Authors@R: person("Ernest", "Guevarra",
77
comment = c(ORCID = "0000-0002-4887-4415"),
88
email = "[email protected]", role = c("aut", "cre"))

NEWS.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
# ppitables 0.5.4
2+
3+
This is the ninth CRAN release of `ppitables`. In this release, I added:
4+
5+
* new PPI tables for Indonesia using the new PPI calculation approach developed
6+
by the International Poverty Alliance (IPA) based on data from Indonesia's
7+
SUSENA 2016
8+
9+
* updated `steer` data that serves as an index to the tables to include the new
10+
Indonesia PPI tables
11+
12+
* general documentation updates and general checking updates
13+
114
# ppitables 0.5.3
215

316
This is the eighth CRAN release of `ppitables`. In this release, I added:

R/data.R

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3858,3 +3858,57 @@
38583858
#
38593859
################################################################################
38603860
"ppiMWI2020"
3861+
3862+
################################################################################
3863+
#
3864+
#' Poverty Probability Index (PPI) lookup table for Indonesia
3865+
#'
3866+
#' @format A data frame with 20 columns and 100 rows:
3867+
#' \describe{
3868+
#' \item{\code{score}}{PPI score}
3869+
#' \item{\code{nl100}}{National poverty line (100\%)}
3870+
#' \item{\code{extreme}}{Extreme poverty line}
3871+
#' \item{\code{nl150}}{National poverty line (150\%)}
3872+
#' \item{\code{nl200}}{National poverty line (200\%)}
3873+
#' \item{\code{ppp100}}{Below $1.00 per day purchasing power parity (2011)}
3874+
#' \item{\code{ppp190}}{Below $1.90 per day purchasing power parity (2011)}
3875+
#' \item{\code{ppp320}}{Below $3.20 per day purchasing power parity (2011)}
3876+
#' \item{\code{ppp550}}{Below $5.50 per day purchasing power parity (2011)}
3877+
#' \item{\code{ppp800}}{Below $8.00 per day purchasing power parity (2011)}
3878+
#' \item{\code{ppp1100}}{Below $11.00 per day purchasing power parity (2011)}
3879+
#' \item{\code{ppp1500}}{Below $15.00 per day purchasing power parity (2011)}
3880+
#' \item{\code{ppp2170}}{Below $21.70 per day purchasing power parity (2011)}
3881+
#' \item{\code{ppp125}}{Below $1.25 per day purchasing power parity (2005)}
3882+
#' \item{\code{ppp250}}{Below $2.50 per day purchasing power parity (2005)}
3883+
#' \item{\code{ppp500}}{Below $5.00 per day purchasing power parity (2005)}
3884+
#' \item{\code{percentile20}}{Below 20th percentile poverty line}
3885+
#' \item{\code{percentile40}}{Below 40th percentile poverty line}
3886+
#' \item{\code{percentile60}}{Below 50th percentile poverty line}
3887+
#' \item{\code{percentile80}}{Below 60th percentile poverty line}
3888+
#' }
3889+
#'
3890+
#' @examples
3891+
#' # Access Indonesia PPI table
3892+
#' ppiIDN2020
3893+
#'
3894+
#' # Given a specific PPI score (from 0 - 100), get the row of poverty
3895+
#' # probabilities from PPI table it corresponds to
3896+
#' ppiScore <- 50
3897+
#' ppiIDN2020[ppiIDN2020$score == ppiScore, ]
3898+
#'
3899+
#' # Use subset() function to get the row of poverty probabilities corresponding
3900+
#' # to specific PPI score
3901+
#' ppiScore <- 50
3902+
#' subset(ppiIDN2020, score == ppiScore)
3903+
#'
3904+
#' # Given a specific PPI score (from 0 - 100), get a poverty probability
3905+
#' # based on a specific poverty definition. In this example, the USAID
3906+
#' # extreme poverty definition
3907+
#' ppiScore <- 50
3908+
#' ppiIDN2020[ppiIDN2020$score == ppiScore, "extreme"]
3909+
#'
3910+
#' @source \url{https://www.povertyindex.org}
3911+
#'
3912+
#
3913+
################################################################################
3914+
"ppiIDN2020"

R/sysdata.rda

29 Bytes
Binary file not shown.

README.Rmd

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ These three components are joined together without any spaces or gaps.
6969

7070
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.
7171

72-
Following are the available PPI country tables from the `ppitables` package. This is updated as at 20 September 2020 using information from the PPI [site](https://www.povertyindex.org).
72+
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).
7373

7474

7575
### List of PPI country tables
@@ -171,6 +171,9 @@ Following are the available PPI country tables from the `ppitables` package. Thi
171171
| | `ppiIDN2012_a` | PPI for Indonesia based on data from 2010 using new | 2012 |
172172
| | | definition poverty lines | |
173173
+-----+-----------------+-----------------------------------------------------+-----------------+
174+
| | `ppiIDN2020` | PPI for Indonesia based on data from Indonesia's | 2020 |
175+
| | | SUSENA 2016 | |
176+
+-----+-----------------+-----------------------------------------------------+-----------------+
174177
| 21. | `ppiIND2016_r59`| PPI for India using India’s 2011/12 Socio-Economic | 2016 |
175178
| | | using the R59 legacy poverty lines using MRP | |
176179
| | | consumption | |

0 commit comments

Comments
 (0)