View source: R/md_compute_polarization.R
md_compute_polarization | R Documentation |
Compute the Wolfson polarization index for microdata.
md_compute_polarization(welfare, weight, gini, mean, median)
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 |
mean |
numeric: A value with the mean. Optional. |
median |
numeric: Median. Output of |
numeric
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.
wbpip:::md_compute_polarization(
welfare = 1:2000,
weight = rep(1, 2000),
gini = 0.4,
mean = 950,
median = 1000
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.