Skip to contents

Compute poverty and distributional statistics for microdata.

Usage

md_compute_pip_stats(
  welfare,
  povline,
  population,
  requested_mean = NULL,
  popshare = NULL,
  default_ppp = 1,
  ppp = NULL
)

Arguments

welfare

numeric: A vector of income or consumption values

povline

numeric: Poverty line in international dollars

population

numeric: A vector of population weights, optional, a vector of 1s if not specified.

requested_mean

numeric: Welfare mean in international dollars

popshare

numeric: Share of population for which the corresponding quantile is desired. Default .5 (i.e., weighted median)

default_ppp

numeric: Default purchasing power parity

ppp

numeric: PPP requested by user

Value

list