decomp_giniBySources: Static decomposition the Gini Coefficient by Income Sources

Description Usage Arguments Value

View source: R/decomp_giniBySources.R

Description

Static decomposition the Gini Coefficient by Income Sources

Usage

1
decomp_giniBySources(data, incomeSources_vars, totalIncome_var, weight = NULL)

Arguments

data

A data.frame with income sources and the total income (and possibliy sample weights) as variables

incomeSources_vars

A character vector with names of the income sources (they must be columns of 'data')

totalIncome_var

A character value naming the variable wich represents the total income (it must be a column of 'data' and for each observation in the data, the income sources must add up to the total income).

weight

(optional) A character values naming the variable wich represents the sample weights

Value

Returns a tibble with the following coluns: - Income Source (name of the income source) - Concentration Coefficient (with respect to the total income) - Share (with respect to the total income) - Concentration Coefficient*Share (sums up to the Gini Coefficient) - Contribution to Gini Coefficient


antrologos/inequalityTools documentation built on May 23, 2021, 11:56 a.m.