English

xtdml: Double Machine Learning Estimation to Static Panel Data Models with Fixed Effects in R

Econometrics 2025-12-19 v1 Methodology Machine Learning

Abstract

The double machine learning (DML) method combines the predictive power of machine learning with statistical estimation to conduct inference about the structural parameter of interest. This paper presents the R package `xtdml`, which implements DML methods for partially linear panel regression models with low-dimensional fixed effects, high-dimensional confounding variables, proposed by Clarke and Polselli (2025). The package provides functionalities to: (a) learn nuisance functions with machine learning algorithms from the `mlr3` ecosystem, (b) handle unobserved individual heterogeneity choosing among first-difference transformation, within-group transformation, and correlated random effects, (c) transform the covariates with min-max normalization and polynomial expansion to improve learning performance. We showcase the use of `xtdml` with both simulated and real longitudinal data.

Keywords

Cite

@article{arxiv.2512.15965,
  title  = {xtdml: Double Machine Learning Estimation to Static Panel Data Models with Fixed Effects in R},
  author = {Annalivia Polselli},
  journal= {arXiv preprint arXiv:2512.15965},
  year   = {2025}
}

Comments

30 pages; 2 tables

R2 v1 2026-07-01T08:30:14.692Z