EconBase
← All papers

Difference-in-differences for mediation analysis using double machine learning

Martin Huber, Sarina Joy Oberhänsli

arXiv 27 Feb 2026 · Econometrics

arXiv:2602.23877 · PDF · DOI · OpenAlex · Extracted main text

Abstract

We propose a difference-in-differences (DiD) framework with mediation for possibly multivalued discrete or continuous treatments and mediators, aimed at identifying the direct effect of the treatment on the outcome (net of effects operating through the mediator), the indirect effect via the mediator, and the joint effects of treatment and mediator, consistent with the framework of dynamic treatment effects. Identification relies on a conditional parallel trends assumption imposed on the mean potential outcome across treatment and mediator states, or (depending on the causal parameter) additionally on the mean potential outcomes and potential mediator distributions across treatment states. We propose ATET estimators for repeated cross sections and panel data within the double/debiased machine learning framework, which allows for data-driven control of covariates, and we establish their asymptotic normality under standard regularity conditions. We investigate the finite-sample performance of the proposed methods in a simulation study and illustrate our approach in an empirical application to the US National Longitudinal Survey of Youth, estimating the direct effect of health care coverage on general health as well as the indirect effect operating through routine checkups.

Citation extraction

51
references
115
in-text mentions
52
distinct cited
6
self-citations
13,777
main-text words

appendix boundary found by appendix_command · 66% of the source is main text. Read the extracted text to check this.

Most heavily cited references

The works this paper leans on most, across its whole bibliography — not restricted to papers in our corpus. Ranked by composite intensity, which combines how often a work is mentioned, how many sections mention it, and how much of that falls in the main text rather than the appendix.

ReferenceIntensityMentionsSectionsMain text
1J Pearl (2001) Direct and indirect effects0.92843100%
2Farbmacher, Helmut and Huber, Martin and Lafférs, Luká s and Langen,… (2022) Causal mediation analysis with double machine learning self0.874162100%
3Schenk, Timo Daniel (2024) Mediation analysis in difference-in-differences designs0.81142100%
4Deuchert, E and Huber, M and Schelker, M (2019) Direct and indirect effects based on difference-in-differences with an application to political preferences following the Vietna… self0.73732100%
5J M Robins and Sander Greenland (1992) Identifiability and Exchangeability for Direct and Indirect Effects0.73732100%
6Alexandre Belloni and Victor Chernozhukov and Christian Hansen (2014) Inference on Treatment Effects after Selection among High-Dimensional Controls0.64422100%
7Goodman-Bacon, A (2021) Difference-in-differences with variation in treatment timing0.64422100%
8J Neyman (1959) Optimal asymptotic tests of composite statistical hypotheses0.64422100%
9J M Robins (1986) A new approach to causal inference in mortality studies with sustained exposure periods - application to control of the healthy…0.64422100%
10J M Robins and M A Hernan and B Brumback (2000) Marginal Structural Models and Causal Inference in Epidemiology0.64422100%

Showing the top 10 of 52 scored citations.

Cited by, within the corpus

arXiv econ.EM papers that cite this one, ranked by how heavily they lean on it.

Citing paperIntensityMentionsSections
1Difference-in-Differences with a Mediator0.64422
22606.247850.40511