Skip to contents

Compute the Gini coefficient.

Usage

get_gini(
  .data,
  welfare,
  weight,
  distribution_type = c("micro", "group", "aggregate", "imputed")
)

Arguments

.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.

Value

data.table