Skip to contents

Compute poverty statictics for microdata - replace old md_compute_poverty_stats

Usage

md_compute_poverty_stats(welfare, weight, povline_lcu)

Arguments

welfare

numeric: A vector of income or consumption values

weight

numeric vector with sample weights. Default is 1.

povline_lcu

numeric: Poverty line in Local Currency Unit (LCU).

Value

list

Details

Given a vector of consumption or income values and their respective weights md_compute_poverty_stats() computes poverty headcount, poverty gap, poverty severity and the watts index.

Examples

wbpip:::md_compute_poverty_stats(
  welfare = 1:2000,
  weight = rep(1, 2000),
  povline_lcu = 10
)
#> $headcount
#> [1] 0.0045
#> 
#> $poverty_gap
#> [1] 0.00225
#> 
#> $poverty_severity
#> [1] 0.001425
#> 
#> $watts
#> [1] 0.003960719
#>