Skip to main content

9.1. Propensity Matching and Covariate Balancing

Verified Environments & Platforms:EcoDataEcoLabFincoVietLOD

Methodological Part 9.1. Propensity Matching and Covariate Balancing in 9. Causal Inference and Modern Policy Evaluation provides step-by-step How-To implementation guides for 4 econometric model lessons spanning from Section 9.1.1 to 9.1.4. Full theoretical derivations are available at VietLOD Part 9.1 alongside cloud execution on EcoLab.

Video Tutorial: How-To Guide for Part 9.1: Propensity Matching and Covariate Balancing in Stata 18, R 4.x, and Python 3.11+

9.1.1. Methodological Overview and Structural Equations​

  • Methodological Focus: Provides consistent estimation and robust inference for Propensity Matching and Covariate Balancing specifications within Causal Inference and Modern Policy Evaluation.
  • Mandatory Post-Estimation Diagnostics: Kiểm tra miền giao thoa chung, chênh lệch chuẩn hóa trung bình các biến đồng biến sau ghép cặp, tỷ số phương sai và phân tích độ nhạy Rosenbaum Bounds.

Core structural specification for Part 9.1:

ATTPSM=Ee(X)∣D=1{E[Yi∣Di=1,e(Xi)]−E[Yi∣Di=0,e(Xi)]}\text{ATT}_{\text{PSM}} = \text{E}_{e(X)\mid D=1}\Big\{\text{E}[Y_i \mid D_i=1, e(X_i)] - \text{E}[Y_i \mid D_i=0, e(X_i)]\Big\}

Estimator objective and moment conditions:

τATT=E[Yit(1)−Yit(0)  |  Di=1],EN[ψ(Wi;τ^,η^)]=0\tau_{\text{ATT}} = \text{E}\left[Y_{it}(1) - Y_{it}(0) \;\middle|\; D_i = 1\right], \quad \text{E}_N\left[\psi\left(W_i; \hat{\tau}, \hat{\eta}\right)\right] = 0
Methodological Scope Boundary:When empirical data violate the identification conditions of Part 9.1, researchers should transition to the extended methodological parts in Chapter 9 or apply appropriate instrumental-variable and cluster-robust corrections.

9.1.2. Econometric Model Lessons in Part 9.1​

9.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
9.1.1 · Propensity Score Matching — PSMpropensity_score_matchingteffects psmatch (y) (treat x1 x2), atetMatchIt::matchit(treat ~ x1 + x2, data = df, method = 'nearest')smf.logit('treat ~ x1 + x2', data=df).fit()Available
9.1.2 · Hainmueller Entropy Balancingentropy_balancingebalance treat x1 x2 -> regress y treat [pweight = _webal]ebal::ebalance(Treatment = df$treat, X = as.matrix(df[, c('x1', 'x2')]))smf.wls('y ~ treat + x1 + x2', data=df, weights=w_ebal).fit(cov_type='HC1')Available

| 9.1.3 · Generalized Propensity Score Continuous Treatment Dose Response Hirano Imbens | generalized_propensity_score_gps | doseresponse / regress y c.treat##c._gps x1, vce(robust) | CausalGPS::generate_pseudo_pop / hi_estimate | Conditional density GPS r(T,X) + polynomial dose-response surface | Available | | 9.1.4 · Rosenbaum Sensitivity Bounds for Hidden Unobserved Confounding | rosenbaum_sensitivity_bounds | rbounds delta, gamma(1(0.25)2) | rbounds::psens / rbounds::hlsens | Treatment effect + Rosenbaum Gamma = {1.0, 1.25, 1.5, 2.0} upper p-bounds | Available |

9.1.4. Standard Implementation Workflow for Part 9.1​

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

Download the model-specific .csv practice dataset in Part 9.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 9.1.1 to 9.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 tra miền giao thoa chung, chênh lệch chuẩn hóa trung bình các biến đồng biến sau ghép cặp, tỷ số phương sai và phân tích độ nhạy Rosenbaum Bounds and dispatch the specification to EcoLab for automated journal-grade reporting.