EconBase
← All papers

Difference-in-Differences Models in the Presence of Time-Varying Mediators

Kyunghoon Ban, Zhengrun Chen, Désiré Kédagni

arXiv 18 Aug 2026 · Econometrics

arXiv:2608.18375 · PDF · Extracted main text

Abstract

We study difference-in-differences (DiD) designs in which a binary treatment changes an endogenous time-varying (continuous, discrete, or mixed) mediator that in turn affects an outcome. Under our model assumptions, we show that the usual DiD estimand mixes the average direct effect on the treated, the average indirect effect, and a trend bias term. A two-way fixed effects (TWFE) regression that controls for the mediator does not recover the average direct treatment effect on the treated. We show that a DiD estimand conditional on the observed mediator path identifies the conditional average direct effect for treated units at that path, and that averaging over the treated path distribution identifies the average direct effect even when unconditional parallel trends fails. A stable average mediator effect assumption helps recover the average mediator and indirect effects. The framework extends to multivariate mediators, nonlinear DiD, and multiple treatment periods settings. Existing doubly robust estimators can be used to conduct inference. Revisiting the effects of railroad access on agricultural land values, the specification yields a positive direct component not mediated by measured market access, while the corresponding indirect component is small and imprecise. A TWFE benchmark with the same sample and baseline geographic covariates gives a small, imprecise direct coefficient, whereas the original-control TWFE coefficient reverses sign.

Citation extraction

20
references
34
in-text mentions
20
distinct cited
0
self-citations
11,241
main-text words

appendix boundary found by appendix_command · 70% 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
1Imai, Kosuke, Luke Keele, and Teppei Yamamoto (2010) Identification, Inference and Sensitivity Analysis for Causal Mediation Effects1.00054100%
2Sant’Anna, Pedro HC and Jun Zhao (2020) Doubly robust difference-in-differences estimators0.8434375%
3Caetano, Carolina and Brantly Callaway (2024) Difference-in-differences when parallel trends holds conditional on covariates0.81142100%
4Athey, Susan and Guido W. Imbens (2006) Identification and Inference in Nonlinear Difference-in-Differences Models0.64422100%
5de Chaisemartin, Clément and Xavier D'Haultfuille (2020) Two-Way Fixed Effects Estimators with Heterogeneous Treatment Effects0.64422100%
6Pearl, Judea (2001) Direct and Indirect Effects0.64422100%
7Donaldson, Dave and Richard Hornbeck (2016) Market Access0.51121100%
8Brown, Nicholas L., Kyle Butts, and Joakim Westerlund (2026) Direct and Indirect Treatment Effects With Time-Varying Covariates0.40511100%
9Callaway, Brantly and Pedro HC Sant’Anna (2021) Difference-in-differences with multiple time periods0.40511100%
10Celli, Viviana (2022) Causal Mediation Analysis in Economics: Objectives, Assumptions, Models0.40511100%

Showing the top 10 of 20 scored citations.