get_lorenz | R Documentation |
Calculate points on the Lorenz curve. TO BE DOCUMENTED.
get_lorenz(
.data,
welfare,
weight,
distribution_type = c("micro", "group", "aggregate", "imputed"),
nbins = NULL
)
.data |
Household survey data frame with at least a welfare variable. |
welfare |
numeric: A vector of income or consumption values. |
weight |
numeric: A vector of weights. Default is a vector of ones,
|
distribution_type |
character: Type of distribution, either micro, group, aggregate or imputed. |
nbins |
numeric: number of points on the Lorenz curve. if |
data.frame
data("md_ABC_2000_income")
df <- md_ABC_2000_income
lorenz <- get_lorenz(df, welfare, weight)
str(lorenz)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.