Papers
Topics
Authors
Recent
Search
2000 character limit reached

Double Machine Learning for Static Panel Data with Instrumental Variables: New Method and Applications

Published 20 Mar 2026 in econ.EM, stat.ME, and stat.ML | (2603.20464v1)

Abstract: Panel data methods are widely used in empirical analysis to address unobserved heterogeneity, but causal inference remains challenging when treatments are endogenous and confounding variables high-dimensional and potentially nonlinear. Standard instrumental variables (IV) estimators, such as two-stage least squares (2SLS), become unreliable when instrument validity requires flexibly conditioning on many covariates with potentially non-linear effects. This paper develops a Double Machine Learning estimator for static panel models with endogenous treatments (panel IV DML), and introduces weak-identification diagnostics for it. We revisit three influential migration studies that use shift-share instruments. In these settings, instrument validity depends on a rich covariate adjustment. In one application, panel IV DML strengthens the predictive power of the instrument and broadly confirms 2SLS results. In the other cases, flexible adjustment makes the instruments weak, leading to substantially more cautious causal inference than conventional 2SLS. Monte Carlo evidence supports these findings, showing that panel IV DML improves estimation accuracy under strong instruments and delivers more reliable inference under weak identification.

Summary

  • The paper introduces Panel IV DML, a novel estimator that adapts double machine learning for static panel data with endogenous treatments using block cross-fitting.
  • It integrates ML-driven nuisance estimation with Neyman orthogonal scores and new weak-IV diagnostics, outperforming conventional 2SLS under complex confounding.
  • Empirical applications reveal its reliability in political and economic studies, providing robust causal inference even with nonlinear covariate structures.

Double Machine Learning for Static Panel Data with Instrumental Variables: Methodological Innovations and Empirical Evaluation

Methodological Framework

The paper introduces a novel estimator—Panel IV DML—for causal inference in static panel data settings with endogenous treatments and instrumental variables. Traditional estimators such as 2SLS falter when instrument validity is conditional on high-dimensional, potentially nonlinear covariates, and when the data exhibit serial dependence and unobserved individual heterogeneity typical of panel datasets. The proposed estimator leverages the double machine learning (DML) paradigm, extending the framework of Chernozhukov et al. (2018) to panel data with endogenous treatments. It utilizes block-k-fold cross-fitting, which assigns each unit's entire time series to the same fold, enabling robust prediction of nuisance functions through generic ML algorithms. Neyman orthogonal score functions are constructed to ensure regularization bias is eliminated, and statistical inference remains valid even under ML-driven estimation.

Instrument strength diagnostics, specifically the first-stage F-statistics and Anderson-Rubin (AR) confidence sets, are integrated within the panel IV DML framework. The method is among the first to implement weak-IV diagnostics in the context of DML, enabling rigorous detection of weak identification and providing robust inference when conventional methods (e.g., 2SLS) are unreliable.

Empirical Applications and Comparative Analysis

The estimator is empirically validated on three canonical migration studies employing shift-share instruments. In these settings, instrument validity critically depends on rich covariate control, often with nonlinearities. The panel IV DML approach shows two distinct impacts depending on the empirical context:

  • Political Outcomes (Tabellini, 2020): Panel IV DML increases instrument predictive power due to flexible control adjustment. Estimates coincide with conventional 2SLS regarding hostile political reactions to immigration, but notably, for economic outcomes, panel IV DML nullifies effects reported by 2SLS, indicating sensitivity to covariate inclusion rather than estimator choice.
  • Attitudes and Parties (Moriconi et al., 2019/2022): Flexible adjustment exposes weak instrument challenges. Panel IV DML frequently finds the instrument is ineffective, and AR diagnostics confirm insufficient variation to support identification. This leads to substantially more cautious causal inference than 2SLS, which often overlooks instrument fragility.

Monte Carlo simulations, calibrated to the empirical designs, corroborate these findings. Under strong instruments, panel IV DML outperforms 2SLS on bias and convergence rates. When instruments are weak, panel IV DML and AR-based tests reliably reveal weak identification, preventing overconfident inference prevalent in conventional econometric practice.

Theoretical Contributions and Integration with Literature

This work expands several strands of econometric and causal ML literature. It generalizes DML to partially linear panel regression with endogenous treatments, accommodating low-dimensional unobserved heterogeneity and relaxing exogeneity assumptions on treatment variables. The Neyman-orthogonal scores are tailored to the panel structure, ensuring root-N consistency and valid statistical inference under generic ML estimation of nuisance functions.

Weak-IV diagnostics are incorporated directly within the DML estimation process. Conventional weak IV asymptotics, such as those underpinning Stock-Yogo and Anderson-Rubin tests, are adapted to accommodate flexible ML-driven first-stage estimation. Notably, the framework remains robust to heteroskedasticity and clustered data, aligning with best practices in panel econometrics.

The Panel IV DML algorithm utilizes first-difference transformation to eliminate individual fixed effects, avoiding constraints imposed by within-transformation or correlated random effects. Cross-fitting over blocks preserves temporal structure and maximizes the reliability of ML-driven nuisance function estimation.

Practical Implications and Future Directions

The methodological toolkit offered by panel IV DML is immediately relevant for empirical researchers confronting high-dimensional confounding, endogenous treatments, and nonrandom instruments in panel data. By automating flexible covariate adjustment and integrating robust weak-IV diagnostics, researchers can obtain more credible causal estimates and avoid overconfident inference when instruments are weak.

Practical deployment is facilitated through R packages such as xtivdml and DoubleML, supporting a range of base learners (Lasso, gradient boosting, neural networks) and rigorous hyperparameter tuning.

Future research avenues include extending weak-IV asymptotics to scenarios with nonlinear first-stage relationships, and adaptation to dynamic panel models with predetermined or lagged regressors. Further exploration of variable selection and model averaging strategies within DML for panels can improve finite-sample performance, particularly under model misspecification.

Conclusion

Panel IV DML represents a robust methodological advance for causal inference in static panel data with endogenous treatments and high-dimensional covariate adjustment. By combining Neyman-orthogonal scores, flexible ML nuisance estimation, and integrated weak-IV diagnostics, the estimator delivers improved inference under both strong and weak identification. Empirical results demonstrate its superiority over conventional 2SLS in settings where instrument validity and confounder structure are complex, providing a reliable framework for substantive policy analysis and empirical research in economics and related fields.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We found no open problems mentioned in this paper.

Collections

Sign up for free to add this paper to one or more collections.

Tweets

Sign up for free to view the 3 tweets with 33 likes about this paper.