mld_decomp: Decomposition of the mean log deviation

Description Usage Arguments Details Value Source References See Also Examples

Description

Decomposes the mean log deviation into non overlapping population subgroups. Distinction is made by between and within group inequality.

Usage

1

Arguments

x

a numeric vector containing at least non-negative elements.

z

a factor containing the population subgroups.

weights

an optional vector of weights of x to be used in the computation of the decomposition. Should be NULL or a numeric vector.

Details

The decomposition of the mean log deviation by between and within group inequality. Within group inequality is calculated by using the mean log deviation for each sub group. Between group inequality by the mean log deviation of the average of both sub groups.

It uses a logarithmic transformation of the values of the distribution. Therefore it cannot handle negative or zero values. Those are excluded from the computation in this function.

Based on calcGEI function in IC2 package. Handles missings.

Value

a list with the results of the decomposition and the parts used for the decomposition, containing the following components:

mld_decomp

a list containing the decomposition: mld_total (value of the mean log deviation index of x) mld_within (value of within-group inequality) and mld_between (value of between-group inequality)

mld_group

a list containing mld_group (the mean log deviations of the different subgroups) and mld_group_contribution(the contribution of the subgroups to the total within-group inequality: adds up to mld_within)

mld_decomp

a list containing the means of x: mean_total (value of the mean of x of all subgroups combined) and mean_group (value of the mean of x of the individual subgroups) inequality) and mld_between (value of between-group inequality)

share_groups

the distribution of the subgroups z

share_income_groups

the distribution of vector x by subgroups z

number_cases

a list containing the number of cases in total, by subgroup (weighted and unweighted): n_unweighted (total number of unweighted x), n_weighted (total number of weighted x), n_group_unweighted (number of unweighted x by subgroup z), n_group_unweighted (number of weighted x by subgroup z)

note

number of zero or negative observations. The mean log deviation uses a logarithmic transformation of x. Therefore these observations are deleted from the analysis

Source

Plat, D. (2012). IC2: Inequality and Concentration Indices and Curves. R package version 1.0-1. https://CRAN.R-project.org/package=IC2

References

Mookherjee, D. and A. Shorrocks (1982) A decomposition analysis of the trend in UK income inequality, Economic Journal, 92 (368), p. 886-902.

Brewer M., and L. Wren-Lewis (2016) Accounting for Changes in Income Inequality: Decomposition Analyses for the UK, 1978–2008. Oxford Bulletin of economics and statistics, 78 (3), p. 289-322,

Haughton, J. and S. Khandker. (2009) Handbook on poverty and inequality, Washington, DC: World Bank.

See Also

mld_change gini_decomp

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
#Decomposition of mean log deviation by level of education using Mexican Income data set
data(mex_inc_2008)
education_decomp <- mld_decomp(x=mex_inc_2008$income,z=mex_inc_2008$education,
weights=mex_inc_2008$factor)

#complete output
education_decomp

#Selected output: decomposition into between- and within-group inequality
education_decomp["mld_decomp"]

ReneSchulenberg/dineq documentation built on May 14, 2019, 12:43 p.m.