Skip to contents

Compute the Wolfson polarization index for microdata.

Usage

md_compute_polarization(welfare, weight, gini, mean, median)

Arguments

welfare

numeric: A vector of income or consumption values

weight

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

gini

numeric: Gini. Output of md_compute_gini().

mean

numeric: A value with the mean. Optional.

median

numeric: Median. Output of md_compute_median().

Value

numeric

References

Ravallion, M., S. Chen. 1996. "What Can New Survey Data Tell Us about Recent Changes in Distribution and Poverty?". Policy Research Working Paper 1694. World Bank, Washington, DC.

Examples

wbpip:::md_compute_polarization(
  welfare = 1:2000,
  weight = rep(1, 2000),
  gini = 0.4,
  mean = 950,
  median = 1000
)
#> [1] 0.14