🤖 AI Summary
Traditional difference-in-differences (DID) struggles with high-dimensional confounders in observational panel data, while machine learning methods lack causal interpretability. To address these limitations, this paper proposes the Structured DID–Machine Learning (S-DIDML) framework, which integrates structural causal modeling with machine learning. Leveraging structural residual orthogonalization, S-DIDML robustly controls for high-dimensional covariates while preserving the group–time identification structure. It further incorporates Neyman orthogonality, cross-fitting, causal forests, and semiparametric modeling to enable dynamic heterogeneous treatment effect estimation. The method is standardized and implemented in Stata. Empirical evaluations demonstrate that S-DIDML significantly improves estimation accuracy of policy effects and enhances identification of sensitive subpopulations compared to existing approaches. It provides a reproducible, interpretable, and scalable causal inference tool for complex interventions—such as digital transformation and environmental regulation—where conventional DID assumptions are violated or high-dimensional confounding is pervasive.
📝 Abstract
Causal inference in observational panel data has become a central concern in economics,policy analysis,and the broader social sciences.To address the core contradiction where traditional difference-in-differences (DID) struggles with high-dimensional confounding variables in observational panel data,while machine learning (ML) lacks causal structure interpretability,this paper proposes an innovative framework called S-DIDML that integrates structural identification with high-dimensional estimation.Building upon the structure of traditional DID methods,S-DIDML employs structured residual orthogonalization techniques (Neyman orthogonality+cross-fitting) to retain the group-time treatment effect (ATT) identification structure while resolving high-dimensional covariate interference issues.It designs a dynamic heterogeneity estimation module combining causal forests and semi-parametric models to capture spatiotemporal heterogeneity effects.The framework establishes a complete modular application process with standardized Stata implementation paths.The introduction of S-DIDML enriches methodological research on DID and DDML innovations, shifting causal inference from method stacking to architecture integration.This advancement enables social sciences to precisely identify policy-sensitive groups and optimize resource allocation.The framework provides replicable evaluation tools, decision optimization references,and methodological paradigms for complex intervention scenarios such as digital transformation policies and environmental regulations.