Package: ddecompose 1.0.0

Samuel Meier

ddecompose: Detailed Distributional Decomposition

Implements the Oaxaca-Blinder decomposition method and generalizations of it that decompose differences in distributional statistics beyond the mean. The function ob_decompose() decomposes differences in the mean outcome between two groups into one part explained by different covariates (composition effect) and into another part due to differences in the way covariates are linked to the outcome variable (structure effect). The function further divides the two effects into the contribution of each covariate and allows for weighted doubly robust decompositions. For distributional statistics beyond the mean, the function performs the recentered influence function (RIF) decomposition proposed by Firpo, Fortin, and Lemieux (2018). The function dfl_decompose() divides differences in distributional statistics into an composition effect and a structure effect using inverse probability weighting as introduced by DiNardo, Fortin, and Lemieux (1996). The function also allows to sequentially decompose the composition effect into the contribution of single covariates. References: Firpo, Sergio, Nicole M. Fortin, and Thomas Lemieux. (2018) <doi:10.3390/econometrics6020028>. "Decomposing Wage Distributions Using Recentered Influence Function Regressions." Fortin, Nicole M., Thomas Lemieux, and Sergio Firpo. (2011) <doi:10.3386/w16045>. "Decomposition Methods in Economics." DiNardo, John, Nicole M. Fortin, and Thomas Lemieux. (1996) <doi:10.2307/2171954>. "Labor Market Institutions and the Distribution of Wages, 1973-1992: A Semiparametric Approach." Oaxaca, Ronald. (1973) <doi:10.2307/2525981>. "Male-Female Wage Differentials in Urban Labor Markets." Blinder, Alan S. (1973) <doi:10.2307/144855>. "Wage Discrimination: Reduced Form and Structural Estimates."

Authors:David Gallusser [aut], Samuel Meier [aut, cre]

ddecompose_1.0.0.tar.gz
ddecompose_1.0.0.tar.gz(r-4.5-noble)ddecompose_1.0.0.tar.gz(r-4.4-noble)
ddecompose_1.0.0.tgz(r-4.4-emscripten)ddecompose_1.0.0.tgz(r-4.3-emscripten)
ddecompose.pdf |ddecompose.html
ddecompose/json (API)

# Install 'ddecompose' in R:
install.packages('ddecompose', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Datasets:
  • men8305 - Sample of male wage data from the CPS 1983-1985 and 2003-2005
  • nlys00 - Sample of NLSY79 wage data from 2000

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

1.70 score 1 stars 3 scripts 147 downloads 5 exports 77 dependencies

Last updated 6 months agofrom:309b85aa8a. Checks:OK: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 04 2024
R-4.5-linuxOKNov 04 2024

Exports:dfl_decomposeestimate_iq_rangeestimate_iq_ratioGU_normalizationob_decompose

Dependencies:backportsbase64encBHbigmemorybigmemory.sribslibcachemcheckmatecliclustercolorspacedata.tabledigestevaluatefansifarverfastglmfastmapfontawesomeforeignFormulafsggplot2gluegridExtragtablehighrHmischtmlTablehtmltoolshtmlwidgetsisobandjquerylibjsonliteknitrlabelinglatticelifecyclemagrittrMASSMatrixmemoisemgcvmimemunsellnlmennetpbapplypillarpkgconfigR6rangerrappdirsRColorBrewerRcppRcppEigenrifregrlangrmarkdownrpartrstudioapisandwichsassscalesstringistringrtibbletinytexutf8uuidvctrsviridisviridisLitewithrxfunyamlzoo

Readme and manuals

Help Manual

Help pageTopics
Aggregate decomposition termsaggregate_terms
Bootstrapping the OB decompositionbootstrap_estimate_ob_decompose
DFL reweighting decompositiondfl_decompose
Bootstrapping the DFL reweighting decompositiondfl_decompose_bootstrap
Estimate the DFL reweighting decompositiondfl_decompose_estimate
Interquantile rangeestimate_iq_range
Interquantile ratioestimate_iq_ratio
Estimate OB decompositionestimate_ob_decompose
Predict conditional probabilitiesfit_and_predict_probabilities
Estimate distributional statisticsget_distributional_statistics
Get normalized differencesget_normalized_difference
Gardeazabal and Ugidos normalization of factor variablesGU_normalization
Get coefficients for GU normalizationGU_normalization_get_coefficients
Get covariance matrix for GU normalizationGU_normalization_get_vcov
Sum coefficients for GU normalizationGU_normalization_sum_coefficients
Sum covariance matrix for GU normalizationGU_normalization_sum_vcov
Sample of male wage data from the CPS 1983-1985 and 2003-2005men8305
Sample of NLSY79 wage data from 2000nlys00
Oaxaca-Blinder decompositionob_decompose
Calculate OB decomposition termsob_decompose_calculate_terms
Calculate covariance matrix for OB decomposition termsob_decompose_calculate_vcov
Plot decomposition terms for quantilesplot.dfl_decompose
Plot decomposition terms for quantilesplot.ob_decompose
print method for class "dfl_decompose"print.dfl_decompose
print method for class "ob_decompose"print.ob_decompose
Select observations with little common support to be trimmedselect_observations_to_be_trimmed
summary method for class "dfl_decompose"summary.dfl_decompose
summary method for class "ob_decompose"summary.ob_decompose