get_gini: Gini coefficient

View source: R/get_gini.R

get_giniR Documentation

Gini coefficient

Description

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


PIP-Technical-Team/wbpip documentation built on Nov. 29, 2024, 6:57 a.m.