gd_compute_poverty_stats: Computes poverty statistics (grouped)

View source: R/gd_compute_poverty_stats.R

gd_compute_poverty_statsR Documentation

Computes poverty statistics (grouped)

Description

Compute poverty statistics for grouped data by selecting the best functional fit for the Lorenz curve (either beta or quadratic).

Usage

gd_compute_poverty_stats(
  welfare,
  povline,
  population,
  requested_mean,
  popshare = NULL,
  default_ppp = NULL,
  ppp = NULL,
  p0 = 0.5
)

Arguments

welfare

numeric: Cumulative proportion of welfare held by that proportion of the population (Lorenz Curve).

povline

numeric: Poverty line.

population

numeric: Cumulative proportion of population.

requested_mean

numeric: Welfare mean.

popshare

numeric: Share of population living below the poverty line. Optional.

default_ppp

numeric: Default purchasing power parity.

ppp

numeric: PPP request by user.

p0

numeric: TO BE DOCUMENTED.

Value

list

Examples

# Compute poverty stats
res <- wbpip:::gd_compute_poverty_stats(
 welfare = grouped_data_ex2$welfare,
 population = grouped_data_ex2$weight,
 povline = 1.9 * 365 / 12,
 requested_mean = 50,
 default_ppp = 1)

PIP-Technical-Team/wbpip documentation built on Nov. 29, 2024, 6:57 a.m.