Skip to content
Preprint

Difference-in-Differences Models in the Presence of Time-Varying Mediators and Lagged outcomes

Aug 2026 · 0 citations · 16 references
Economics

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. We allow for the inclusion of lagged outcomes in the model. 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-period 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.

View source

Similar papers

Preprint Sep 2026

Omitted Variable Bias in Difference-in-Differences Designs

We study the omitted variable bias (OVB) problem in canonical difference-in-differences (DiD) designs when unobserved confounding induces departures from the parallel trends assumption. Our results provide a novel characterization of the OVB formula for the average treatment effect on the treated (ATT), which is of ind...

Jue-Jue Wang, Pedro H. C. Sant'Anna, V. Chernozhukov et al. · 0 citations
Preprint Aug 2026

Power and sample size calculations for causal mediation analysis with a binary mediator in randomized trials

Mediation analyses are increasingly conducted in randomized trials, but a sample size adequate for the total treatment effect may leave the natural indirect effect (NIE) or natural direct effect (NDE) substantially underpowered. Randomization does not extend to the mediator, so precision depends on the conditional medi...

Bosen Cui, Yu-Hong Yang, Fan Yang · 0 citations
Open access Sep 2026

Difference-in-Differences and Treatment x Pretest Interactions: A Critique of Dual-Centered ANCOVA

This paper critically examines dual-centered ANCOVA, proposed by Lin and Larzelere (2020) and Larzelere and Lin (2025), which is claimed to accommodate a Treatment X Pretest interaction while preserving the difference-in-differences (DiD) estimate. We take issue with their claims on four grounds. First, DiD without an...

Byunghoon Jeon, Yongnam Kim · 0 citations
Preprint Oct 2026

Inference after data-driven control-unit selection in difference-in-differences with estimated covariance

In difference-in-differences (DiD), researchers may use pre-treatment trends to select a control group for which the parallel-trends assumption appears plausible, with the aim of estimating the average treatment effect on the treated (ATT). Our earlier paper,Nakano and Hoshino (2016), and the present paper jointly prov...

Ryoya Nakano, Takahiro Hoshino · 0 citations
Preprint Aug 2026

Aggregation Distortion in Multilevel Mediation: Estimand Geometry, Design Dependence, and Diagnostics

Researchers often summarize mediation in clustered data with a single-level product-of-coefficients estimator. We show what this pooled analysis estimates and why the target depends on the design. The pooled a-path is weighted by the within-between variance composition of the treatment. The pooled b-path uses a differe...

Subir Hait · 0 citations
Preprint Sep 2026

Two Margins in Difference-in-Differences with a Continuous Treatment

This paper studies difference-in-differences with staggered adoption and a continuous, time-invariant dose. Each cohort-time comparison contains two margins. The level margin is the average treatment effect at realized doses. Under level parallel trends it equals the level contrast between the treated cohort and not-ye...

Fang Yu · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.