9. Causal Inference and Modern Policy Evaluation
Chapter 9. Causal Inference and Modern Policy Evaluation provides step-by-step How-To implementation guides for 37 econometric model lessons organized across 5 methodological parts from Section 9.1.1 to 9.5.15. Every guide is synchronized with the full academic lecture at VietLOD Chapter 9 and supports automated cloud execution on EcoLab.
Video Tutorial: How-To Guide for Chapter 9: Causal Inference and Modern Policy Evaluation in Stata 18, R 4.x, and Python 3.11+
9.1. Central Research Question and Core Mathematical Specification
- Central Research Question: How to identify Average Treatment Effects using matching, staggered Difference-in-Differences, regression discontinuity, synthetic controls, and Double Machine Learning?
- Chapter Architecture: Encompasses
5specialized methodological parts from9.1to9.5and37empirical model lessons validated on Vietnamese datasets from EcoData and Finco.
Core structural equation for Chapter 9:
9.2. Explore the 5 Methodological Parts in Chapter 9
Step-by-step How-To guides, tri-engine scripts, and diagnostic workflows for Propensity Matching and Covariate Balancing estimators.
Step-by-step How-To guides, tri-engine scripts, and diagnostic workflows for Canonical Difference-in-Differences and Event Study estimators.
Step-by-step How-To guides, tri-engine scripts, and diagnostic workflows for Regression Discontinuity, Kink, Bunching and Marginal Effects estimators.
Step-by-step How-To guides, tri-engine scripts, and diagnostic workflows for Inverse Probability Weighting, Synthetic Control and Causal ML estimators.
Step-by-step How-To guides, tri-engine scripts, and diagnostic workflows for Modern Heterogeneity-Robust Staggered Difference-in-Differences estimators.
9.3. Four-Step Workflow for Selecting and Executing Models in Chapter 9
Step 1. Select the Appropriate Methodological Part From 9.1 to 9.5
Match your economic hypothesis and sample structure against the identification requirements in Chapter 9 to select the appropriate A.B.C model lesson.
Step 2. Prepare Standardized Datasets From EcoData or Finco
Download the standardized .csv practice file for your target estimator from /src/ecoaz/data/ or extract live empirical series from EcoData and Finco.
Step 3. Estimate Parameters and Run Diagnostics in Stata 18, R 4.x, and Python 3.11+
Execute the tri-engine scripts provided in each model guide and verify the mandatory post-estimation diagnostics: Joint Pre-Trend Wald Test, Goodman-Bacon Negative Weight Diagnostic, Rambachan–Roth HonestDiD Breakdown M, Cattaneo rddensity Manipulation Test, SMD Balance Check.
Step 4. Verify Three-Software Convergence and Export Publication Tables on EcoLab
Confirm numerical convergence across Stata, R, and Python using the three-panel empirical figure and generate journal-grade tables on EcoLab.
9.4. Complete Directory of 37 Econometric Model Lessons in Chapter 9
| Section | Econometric Model Lesson Title | Estimator Key | Level | Software Packages Stata · R · Python | Support |
|---|---|---|---|---|---|
| 9.1.1 | 9.1.1. Propensity Score Matching — PSM | propensity_score_matching | L1 | base Stata · MatchIt / stats · statsmodels / scikit-learn | Available |
| 9.1.2 | 9.1.2. Hainmueller Entropy Balancing | entropy_balancing | L2 | Stata ebalance · ebal / stats · scipy / statsmodels | Available |
| 9.2.1 | 9.2.1. Two-Way Fixed Effects Difference-in-Differences | twfe_did | L1 | base Stata · fixest / plm · linearmodels | Available |
| 9.2.2 | 9.2.2. Dynamic Leads-and-Lags Event-Study DID | event_study_did | L2 | Stata reghdfe / xtreg · fixest · linearmodels / statsmodels | Available |
| 9.2.3 | 9.2.3. Callaway-Sant'Anna Group-Time Staggered DID | callaway_santanna_did | L3 | Stata csdid · did · csdid / statsmodels | Available |
| 9.3.1 | 9.3.1. Sharp Regression Discontinuity Design | sharp_rdd | L1 | Stata rdrobust · rdrobust / stats · rdrobust / statsmodels | Available |
| 9.3.2 | 9.3.2. Fuzzy Regression Discontinuity Design | fuzzy_rdd | L2 | Stata rdrobust · rdrobust / AER · rdrobust / linearmodels | Available |
| 9.3.3 | 9.3.3. Bias-Corrected Robust Local-Polynomial RDD | rdrobust_sharp_fuzzy | L3 | rdrobust · rdrobust · rdrobust | Available |
| 9.3.4 | 9.3.4. Sharp and Fuzzy Regression Kink Design | regression_kink_rkd | L4 | rdrobust · rdrobust · rdrobust | Available |
| 9.3.5 | 9.3.5. Saez-Kleven Counterfactual Density Bunching Estimator | bunching_estimator | L4 | bunchit · bunching · statsmodels | Available |
| 9.3.6 | 9.3.6. Heckman-Vytlacil Marginal Treatment Effects and Local IV | marginal_treatment_effects | L4 | mtefe · ivmte · statsmodels | Available |
| 9.4.1 | 9.4.1. Inverse Probability Weighting — IPW | ipw | L1 | base Stata · WeightIt / stats · statsmodels | Available |
| 9.4.2 | 9.4.2. Doubly Robust Augmented IPW — AIPW | aipw | L2 | base Stata · AIPW / stats · doubleml / statsmodels | Available |
| 9.4.3 | 9.4.3. Abadie-Diamond-Hainmueller Synthetic Control | synthetic_control | L2 | Stata synth · Synth · pysyncon / scipy | Available |
| 9.4.4 | 9.4.4. Ridge-Augmented Synthetic Control Method | augmented_synthetic_control | L3 | synth / fect · Synth / fect · pysyncon | Available |
| 9.4.5 | 9.4.5. Chernozhukov Double Debiased Machine Learning — DML | double_ml | L3 | Stata 18 lasso · DoubleML / glmnet · doubleml / scikit-learn | Available |
| 9.4.6 | 9.4.6. Athey-Wager Heterogeneous Causal Forest | causal_forest | L4 | Stata Python/R bridge · grf / randomForest · econml / scikit-learn | Available |
| 9.5.1 | 9.5.1. Goodman-Bacon Staggered TWFE Weight Decomposition | bacon_decomposition | L3 | bacondecomp · bacondecomp · linearmodels | Available |
| 9.5.2 | 9.5.2. Sun-Abraham Interaction-Weighted Event-Study DID | sun_abraham_did | L3 | eventstudyinteract · fixest · pyfixest | Available |
| 9.5.3 | 9.5.3. Borusyak-Jaravel-Spiess Counterfactual Imputation DID | borusyak_imputation_did | L3 | did_imputation · did2s · pyfixest | Available |
| 9.5.4 | 9.5.4. De Chaisemartin Dynamic Switching Treatment DID | dechaisemartin_did | L4 | did_multiplegt_dyn · DIDmultiplegtDYN · linearmodels | Available |
| 9.5.5 | 9.5.5. Wooldridge Extended Two-Way Mundlak Fixed-Effects DID | wooldridge_etwfe | L3 | Stata 18 xthdidregress / jwdid · etwfe · pyfixest | Available |
| 9.5.6 | 9.5.6. Clean-Control Local Projections Difference-in-Differences | lp_did | L4 | lpdid · fixest · pyfixest | Available |
| 9.5.7 | 9.5.7. Rambachan-Roth HonestDiD Parallel-Trends Sensitivity | honest_did_sensitivity | L3 | honestdid · HonestDiD · scipy / statsmodels | Available |
| 9.5.8 | 9.5.8. Synthetic Difference-in-Differences | synthetic_did | L3 | sdid · synthdid / fect · pysyncon | Available |
| 9.1.3 | 9.1.3. Generalized Propensity Score Continuous Treatment Dose Response Hirano Imbens | generalized_propensity_score_gps | L4 | doseresponse · CausalGPS · statsmodels | Available |
| 9.1.4 | 9.1.4. Rosenbaum Sensitivity Bounds for Hidden Unobserved Confounding | rosenbaum_sensitivity_bounds | L4 | rbounds · rbounds · scipy | Available |
| 9.2.4 | 9.2.4. Difference in Difference in Differences Gruber Olden Moen | triple_difference_ddd | L4 | xtreg · fixest · statsmodels | Available |
| 9.2.5 | 9.2.5. Changes in Changes Nonlinear Counterfactual Distribution Athey Imbens | changes_in_changes_athey_imbens | L4 | xtreg · qte · scipy | Available |
| 9.3.7 | 9.3.7. Quantile Regression Discontinuity Design Frandsen Frolich Melly | quantile_rdd_frandsen | L4 | sqreg · quantreg · statsmodels | Available |
| 9.5.9 | 9.5.9. Targeted Maximum Likelihood Estimation van der Laan Rubin | tmle_targeted_mle | L4 | teffects · tmle · statsmodels | Available |
| 9.5.10 | 9.5.10. Potential Outcomes Causal Mediation ACME and ADE Imai Keele Yamamoto | causal_mediation_imai | L4 | mediate · mediation · statsmodels | Available |
| 9.5.11 | 9.5.11. Empirical Welfare Maximization and Optimal Policy Tree Kitagawa Tetenov Athey Wager | optimal_policy_tree_kitagawa | L4 | teffects · policytree · statsmodels | Available |
| 9.5.12 | 9.5.12. Heckman Vytlacil Local IV Marginal Treatment Effects | marginal_treatment_effects_mte | L4 | mtefe · ivmte · statsmodels | Available |
| 9.5.13 | 9.5.13. Lee Sharp Nonparametric Sample Selection Treatment Effect Bounds | lee_trimming_bounds | L4 | leebounds · leebounds · scipy | Available |
| 9.5.14 | 9.5.14. DiNardo Fortin Lemieux Counterfactual Reweighting and Changes in Changes | changes_in_quantiles_dfl_dinardo | L4 | dfl · qte · statsmodels | Available |
| 9.5.15 | 9.5.15. Athey Imbens Nuclear Norm Matrix Completion Causal Panel Estimator | matrix_completion_panel_athey | L4 | fect · fect · numpy | Available |
9.5. Key Academic References
- Callaway, B, & Sant'Anna, P. H. C.(2021). Difference-in-differences with multiple time periods. Journal of Econometrics, 225, số 2, 200–230.
- Sun, & Abraham(2021). Econometric specification, identification, and asymptotic inference.
- Borusyak, Jaravel, & Spiess(2024). Econometric specification, identification, and asymptotic inference.
- Arkhangelsky et al.(2021). Econometric specification, identification, and asymptotic inference.
- Calonico, S, Cattaneo, M. D, & Titiunik, R.(2014). Robust nonparametric confidence intervals for regression-discontinuity designs. Econometrica, 82, số 6, 2295–2326.
- Chernozhukov, V, Chetverikov, D, Demirer, M, Duflo, E, Hansen, C, Newey, W, & Robins, J.(2018). Double/debiased machine learning for treatment and structural parameters. The Econometrics Journal, 21, số 1, C1–C68.
- Cerulli, G.(2022). Econometric Evaluation of Socio-Economic Programs: Theory and Applications, 2nd ed, Chương 1–6: Matching, IPW, DID, RDD and Synthetic Control. Springer.
- Cameron, A. C, & Trivedi, P. K.(2022). Microeconometrics Using Stata, 2nd ed, Vol. 2, Chương 23–25 & 29: Treatment Effects, DID, RDD and Causal ML. Stata Press.
- Wooldridge, J. M.(2010). Econometric Analysis of Cross Section and Panel Data, 2nd ed, Chương 21: Estimating Average Treatment Effects. MIT Press.
- Stock, J. H, & Watson, M. W.(2020). Introduction to Econometrics, 4th ed, Chương 13: Experiments and Quasi-Experiments. Pearson.