get_gini | R Documentation |
Compute the Gini coefficient.
get_gini(
.data,
welfare,
weight,
distribution_type = c("micro", "group", "aggregate", "imputed")
)
.data |
Household survey data frame with at least a welfare variable. |
welfare |
numeric: A vector of income or consumption values |
weight |
numeric: expansion population factor. |
distribution_type |
character: Type of distribution, either micro, group, aggregate or imputed. |
data.table
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.