Skip to main content

13.1. Inequality Decomposition and Distributional Regression

Verified Environments & Platforms:EcoDataEcoLabFincoVietLOD

Methodological Part 13.1. Inequality Decomposition and Distributional Regression in 13. Income Distribution and Inequality Decomposition provides step-by-step How-To implementation guides for 4 econometric model lessons spanning from Section 13.1.1 to 13.1.4. Full theoretical derivations are available at VietLOD Part 13.1 alongside cloud execution on EcoLab.

Video Tutorial: How-To Guide for Part 13.1: Inequality Decomposition and Distributional Regression in Stata 18, R 4.x, and Python 3.11+

13.1.1. Methodological Overview and Structural Equations​

  • Methodological Focus: Provides consistent estimation and robust inference for Inequality Decomposition and Distributional Regression specifications within Income Distribution and Inequality Decomposition.
  • Mandatory Post-Estimation Diagnostics: Kiểm định Wald ý nghĩa của Total Gap, Explained, Unexplained và Interaction; đóng góp chi tiết từng biến XkX_k kèm SE chuẩn hóa Yun (2005)..

Core structural specification for Part 13.1:

YˉA−YˉB=(XˉA−XˉB)⊤β^∗⏟Hiệu ứng đặc điểm+XˉA⊤(β^A−β^∗)+XˉB⊤(β^∗−β^B)⏟Hiệu ứng hệ soˆˊ\bar{Y}_A - \bar{Y}_B = \underbrace{(\bar{X}_A - \bar{X}_B)^\top \hat{\beta}^\ast}_{\text{Hiệu ứng đặc điểm}} + \underbrace{\bar{X}_A^\top(\hat{\beta}_A - \hat{\beta}^\ast) + \bar{X}_B^\top(\hat{\beta}^\ast - \hat{\beta}_B)}_{\text{Hiệu ứng hệ số}}

Estimator objective and moment conditions:

Δν=ν(FYA)−ν(FYB)=(XˉA−XˉB)⊤γ^ν∗+XˉA⊤(γ^ν,A−γ^ν∗)+XˉB⊤(γ^ν∗−γ^ν,B)\Delta_\nu = \nu(F_{Y_A}) - \nu(F_{Y_B}) = \left(\bar{X}_A - \bar{X}_B\right)^\top \hat{\gamma}_\nu^\ast + \bar{X}_A^\top\left(\hat{\gamma}_{\nu,A} - \hat{\gamma}_\nu^\ast\right) + \bar{X}_B^\top\left(\hat{\gamma}_\nu^\ast - \hat{\gamma}_{\nu,B}\right)
Methodological Scope Boundary:When empirical data violate the identification conditions of Part 13.1, researchers should transition to the extended methodological parts in Chapter 13 or apply appropriate instrumental-variable and cluster-robust corrections.

13.1.2. Econometric Model Lessons in Part 13.1​

13.1.3. Comparative Execution Syntax Across Stata 18, R 4.x, and Python 3.11+​

Section & Model TitleEstimator KeyStata 18 MP SyntaxR 4.x SyntaxPython 3.11+ SyntaxSupport
13.1.1 · Blinder-Oaxaca Twofold and Threefold Decompositionoaxaca_blinderoaxaca y x1 x2, by(group) pooled vce(robust)oaxaca::oaxaca(y ~ x1 + x2 | group, data = df, R = 200)sm.stats.OaxacaBlinder(df['y'], df[['x1', 'x2']], df['group']).two_fold()Available
13.1.2 · Recentered Influence Function Unconditional Quantile and Gini Regressionrif_regressionrifhdreg y x1 x2, rif(q(50)) vce(robust)rifreg::rifreg(y ~ x1 + x2, data = df, statistic = 'quantiles', probs = 0.5)smf.ols('rif_y_q50 ~ x1 + x2', data=df).fit(cov_type='HC1')Available
13.1.3 · IPW-Reweighted RIF-Oaxaca Distributional Decompositionoaxaca_rif_decompositionoaxaca_rif y x1 x2, rif(q(90)) by(group) rwlogit(x1 x2)oaxaca::oaxaca(rif_y ~ x1 + x2 | group, data = df, R = 200)sm.stats.OaxacaBlinder(df['rif_y'], df[['x1', 'x2']], df['group']).two_fold()Available

| 13.1.4 · Chernozhukov Fernandez Val Melly Counterfactual Distribution Process | chernozhukov_counterfactual_dist | cdeco y x1 x2, group(grp) / regress y x1 x2, vce(robust) | Counterfactual::cdeco(y ~ x1 + x2, group = grp) | Chernozhukov-Fernandez-Val-Melly (2013) threshold distribution + quantile process decomposition | Available |

13.1.4. Standard Implementation Workflow for Part 13.1​

Step 1. Load Standardized Practice Datasets From VietLOD, EcoData, or Finco

Download the model-specific .csv practice dataset in Part 13.1 or extract custom empirical panels from EcoData and Finco.

Step 2. Select the Optimal Estimator for Your Error and Sample Structure

Compare the estimators from 13.1.1 to 13.1.4 in the syntax matrix above and execute the estimation in Stata 18 MP, R 4.x, or Python 3.11+.

Step 3. Run Mandatory Diagnostics and Export Publication Tables on EcoLab

Verify all required diagnostics including Kiểm định Wald ý nghĩa của Total Gap, Explained, Unexplained và Interaction; đóng góp chi tiết từng biến XkX_k kèm SE chuẩn hóa Yun (2005). and dispatch the specification to EcoLab for automated journal-grade reporting.