dec_all_: Performs decomposition of the quantile differences (of y)...

View source: R/various_dec.R

dec_all_R Documentation

Performs decomposition of the quantile differences (of y) between two groups (in 2 components) in the common support.

Description

Performs decomposition of the quantile differences (of y) between two groups (in 2 components) in the common support.

Usage

dec_all_(.dec_, counterfactual = c("AB", "BA"))

Arguments

.dec_

output of dec_quantiles.

counterfactual

"AB" or "BA". "AB" means that we want to estimate the counterfactual (wage) of group A, as if their characteristics were distributed as in group B. "BA" is the opposite (characteristics of group B are balanced to those of group A).

Value

a data frame with the following columns:

  • probs: the chosen quantile levels;

  • delta_tot: total observed difference between the quantiles (of wages) of group A and B (all the sample);

  • delta_tot_CS: total observed difference between the quantiles (of wages) of group A and B in the common support;

  • delta_AB: difference explained by the fact that the two groups have some combinations of characteristics that the other group has not.

  • delta_X: part explained by the fact that the two groups have a different distribution of characteristics (same combinations of characteristics) but distributed differently);

  • delta_S: part not justified by the different distributions of the characteristics of the two groups, and potentially due to a difference in the remuneration structures between the two groups.

Examples

data(invented_wages)

# Common support and computation of counterfactual weights
r00 <- reweight_strata_all2(invented_wages, treatment = "gender",
                       variables = c("sector", "education"),
                       y = "wage", weights = "sample_weights")

# Computation of the elements necessary to the decompositions
d00 <- dec_quantiles(r00)

# Decomposition of the difference of the medians of the two groups
# (in the common support) in two components
dec_all_(d00)


gibonet/decr documentation built on Jan. 5, 2024, 7:26 a.m.