lorenz_alt | R Documentation |
Given a vector of weights and welfare, this functions computes the Lorenz curve and several other related indicators.
lorenz_alt(welfare, weight, nbins = NULL, na.rm = FALSE)
welfare |
numeric: A vector of income or consumption values. |
weight |
numeric: A vector of weights. |
nbins |
numeric: number of points on the Lorenz curve. |
na.rm |
logical: Set to TRUE to remove missing. |
data.table
wbpip:::lorenz_alt(welfare = 1:2000, weight = rep(1, 2000))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.