Skip to main content

9.4. Inverse Probability Weighting, Synthetic Control and Causal ML

Verified Environments & Platforms:EcoDataEcoLabFincoVietLOD

Methodological Part 9.4. Inverse Probability Weighting, Synthetic Control and Causal ML in 9. Causal Inference and Modern Policy Evaluation provides step-by-step How-To implementation guides for 6 econometric model lessons spanning from Section 9.4.1 to 9.4.6. Full theoretical derivations are available at VietLOD Part 9.4 alongside cloud execution on EcoLab.

Video Tutorial: How-To Guide for Part 9.4: Inverse Probability Weighting, Synthetic Control and Causal ML in Stata 18, R 4.x, and Python 3.11+

9.4.1. Methodological Overview and Structural Equations​

  • Methodological Focus: Provides consistent estimation and robust inference for Inverse Probability Weighting, Synthetic Control and Causal ML specifications within Causal Inference and Modern Policy Evaluation.
  • Mandatory Post-Estimation Diagnostics: Kiểm định cân bằng hiệp phương sai có trọng số, kiểm tra xác suất cực đoan gần 00 hoặc 11 và sai số chuẩn (GMM) hoặc Bootstrap.

Core structural specification for Part 9.4:

τ^IPW=1N∑i=1N[DiYie^(Xi)−(1−Di)Yi1−e^(Xi)]\hat{\tau}_{\text{IPW}} = \frac{1}{N}\sum_{i=1}^N \left[\frac{D_i Y_i}{\hat{e}(X_i)} - \frac{(1 - D_i)Y_i}{1 - \hat{e}(X_i)}\right]

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.4, researchers should transition to the extended methodological parts in Chapter 9 or apply appropriate instrumental-variable and cluster-robust corrections.

9.4.2. Econometric Model Lessons in Part 9.4​

9.4.1 · ipw
9.4.1. Inverse Probability Weighting — IPW

Estimates the Inverse Probability Weighting — IPW specification within the Inverse Probability Weighting, Synthetic Control and Causal ML fr...

Explore Guide
9.4.2 · aipw
9.4.2. Doubly Robust Augmented IPW — AIPW

Estimates the Doubly Robust Augmented IPW — AIPW specification within the Inverse Probability Weighting, Synthetic Control and Causal ML fra...

Explore Guide
9.4.3 · synthetic_control
9.4.3. Abadie-Diamond-Hainmueller Synthetic Control

Estimates the Abadie-Diamond-Hainmueller Synthetic Control specification within the Inverse Probability Weighting, Synthetic Control and Cau...

Explore Guide
9.4.4 · augmented_synthetic_control
9.4.4. Ridge-Augmented Synthetic Control Method

Augments classical simplex donor weights with a Ridge outcome-model bias correction to eliminate pre-treatment mismatch when treated units l...

Explore Guide
9.4.5 · double_ml
9.4.5. Chernozhukov Double Debiased Machine Learning — DML

Estimates the Chernozhukov Double Debiased Machine Learning — DML specification within the Inverse Probability Weighting, Synthetic Control ...

Explore Guide
9.4.6 · causal_forest
9.4.6. Athey-Wager Heterogeneous Causal Forest

Estimates the Athey-Wager Heterogeneous Causal Forest specification within the Inverse Probability Weighting, Synthetic Control and Causal M...

Explore Guide

9.4.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.4.1 · Inverse Probability Weighting — IPWipwteffects ipw (y) (treat x1 x2), ateWeightIt::weightit(treat ~ x1 + x2, data = df, method = 'ps')smf.wls('y ~ treat', data=df, weights=w_ipw).fit(cov_type='HC1')Available
9.4.2 · Doubly Robust Augmented IPW — AIPWaipwteffects aipw (y x1 x2) (treat x1 x2), ateAIPW::AIPW$new(Y = df$y, A = df$treat, W = df[, c('x1', 'x2')])$fit()DoubleMLIRM(dml_data, ml_g=RandomForestRegressor(), ml_m=RandomForestClassifier()).fit()Available
9.4.3 · Abadie-Diamond-Hainmueller Synthetic Controlsynthetic_controlsynth y x1 x2, trunit(1) trperiod(2018) nestedSynth::synth(dataprep.res)Synth().fit(dataprep=dataprep_obj)Available
9.4.4 · Ridge-Augmented Synthetic Control Methodaugmented_synthetic_controlsynth y x1 x2, trunit(1) trperiod(2018)fect::fect(y ~ treat + x1 + x2, data = df, index = c('id', 'year'), method = 'mc')AugSynth().fit(dataprep=dataprep_obj)Available
9.4.5 · Chernozhukov Double Debiased Machine Learning — DMLdouble_mlxporegress y d, controls(x1-x10) xfolds(5)DoubleML::DoubleMLPLR$new(data, ml_l, ml_m)$fit()DoubleMLPLR(dml_data, ml_l=RandomForestRegressor(), ml_m=RandomForestRegressor()).fit()Available
9.4.6 · Athey-Wager Heterogeneous Causal Forestcausal_forestpython: CausalForestDML(n_estimators=500, random_state=42).fit(Y, T, X=X)grf::causal_forest(X, Y, W)CausalForestDML(n_estimators=500, random_state=42).fit(Y, T, X=X)Available

9.4.4. Standard Implementation Workflow for Part 9.4​

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

Download the model-specific .csv practice dataset in Part 9.4 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.4.1 to 9.4.6 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 cân bằng hiệp phương sai có trọng số, kiểm tra xác suất cực đoan gần 00 hoặc 11 và sai số chuẩn (GMM) hoặc Bootstrap and dispatch the specification to EcoLab for automated journal-grade reporting.