Learn R Programming

ppitables (version 0.6.0)

ppiAFG2012: Poverty Probability Index (PPI) lookup table for Afghanistan

Description

Poverty Probability Index (PPI) lookup table for Afghanistan

Usage

ppiAFG2012

Arguments

Format

A data frame with 7 columns and 101 rows:

score

PPI score

nl

National poverty line

nu150

National poverty line (150%)

nu200

National poverty line (200%)

extreme

USAID extreme poverty

ppp125

Below $1.25 per day purchasing power parity (2005)

ppp250

Below $2.50 per day purchasing power parity (2005)

Examples

Run this code
  # Access Afghanistan PPI table
  ppiAFG2012

  # Given a specific PPI score (from 0 - 100), get the row of poverty
  # probabilities from PPI table it corresponds to
  ppiScore <- 50
  ppiAFG2012[ppiAFG2012$score == ppiScore, ]

  # Use subset() function to get the row of poverty probabilities corresponding
  # to specific PPI score
  ppiScore <- 50
  subset(ppiAFG2012, 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
  ppiAFG2012[ppiAFG2012$score == ppiScore, "extreme"]

Run the code above in your browser using DataLab