9.4. Inverse Probability Weighting, Synthetic Control and Causal ML
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 hoặc và sai số chuẩn (GMM) hoặc Bootstrap.
Core structural specification for Part 9.4:
Estimator objective and moment conditions:
9.4.2. Econometric Model Lessons in Part 9.4
Estimates the Inverse Probability Weighting — IPW specification within the Inverse Probability Weighting, Synthetic Control and Causal ML fr...
Estimates the Doubly Robust Augmented IPW — AIPW specification within the Inverse Probability Weighting, Synthetic Control and Causal ML fra...
Estimates the Abadie-Diamond-Hainmueller Synthetic Control specification within the Inverse Probability Weighting, Synthetic Control and Cau...
Augments classical simplex donor weights with a Ridge outcome-model bias correction to eliminate pre-treatment mismatch when treated units l...
Estimates the Chernozhukov Double Debiased Machine Learning — DML specification within the Inverse Probability Weighting, Synthetic Control ...
Estimates the Athey-Wager Heterogeneous Causal Forest specification within the Inverse Probability Weighting, Synthetic Control and Causal M...
9.4.3. Comparative Execution Syntax Across Stata 18, R 4.x, and Python 3.11+
| Section & Model Title | Estimator Key | Stata 18 MP Syntax | R 4.x Syntax | Python 3.11+ Syntax | Support |
|---|---|---|---|---|---|
| 9.4.1 · Inverse Probability Weighting — IPW | ipw | teffects ipw (y) (treat x1 x2), ate | WeightIt::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 — AIPW | aipw | teffects aipw (y x1 x2) (treat x1 x2), ate | AIPW::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 Control | synthetic_control | synth y x1 x2, trunit(1) trperiod(2018) nested | Synth::synth(dataprep.res) | Synth().fit(dataprep=dataprep_obj) | Available |
| 9.4.4 · Ridge-Augmented Synthetic Control Method | augmented_synthetic_control | synth 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 — DML | double_ml | xporegress 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 Forest | causal_forest | python: 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 hoặc và sai số chuẩn (GMM) hoặc Bootstrap and dispatch the specification to EcoLab for automated journal-grade reporting.