IDEAS home Printed from https://ideas.repec.org/p/arx/papers/2608.18375.html

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

Author

Listed:
  • Kyunghoon Ban
  • Zhengrun Chen
  • D'esir'e K'edagni

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.

Suggested Citation

  • Kyunghoon Ban & Zhengrun Chen & D'esir'e K'edagni, 2026. "Difference-in-Differences Models in the Presence of Time-Varying Mediators and Lagged outcomes," Papers 2608.18375, arXiv.org, revised Sep 2026.
  • Handle: RePEc:arx:papers:2608.18375
    as

    Download full text from publisher

    File URL: https://arxiv.org/pdf/2608.18375
    File Function: Latest version
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Howard, Greg & Ornaghi, Arianna, 2021. "Closing Time: The Local Equilibrium Effects of Prohibition," The Journal of Economic History, Cambridge University Press, vol. 81(3), pages 792-830, September.
    2. Sant’Anna, Pedro H.C. & Zhao, Jun, 2020. "Doubly robust difference-in-differences estimators," Journal of Econometrics, Elsevier, vol. 219(1), pages 101-122.
    3. Susan Athey & Guido W. Imbens, 2006. "Identification and Inference in Nonlinear Difference-in-Differences Models," Econometrica, Econometric Society, vol. 74(2), pages 431-497, March.
    4. Nicholas L. Brown & Kyle Butts & Joakim Westerlund, 2026. "Direct and Indirect Treatment Effects With Time‐Varying Covariates," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 41(5), pages 567-579, August.
    5. Eva Deuchert & Martin Huber & Mark Schelker, 2019. "Direct and Indirect Effects Based on Difference-in-Differences With an Application to Political Preferences Following the Vietnam Draft Lottery," Journal of Business & Economic Statistics, Taylor & Francis Journals, vol. 37(4), pages 710-720, October.
    6. Jeffrey M Wooldridge, 2023. "Simple approaches to nonlinear difference-in-differences with panel data," The Econometrics Journal, Royal Economic Society, vol. 26(3), pages 31-66.
    7. Doosoo Kim & Jeffrey M. Wooldridge, 2025. "Difference-in-Differences Estimator of Quantile Treatment Effect on the Treated," Journal of Business & Economic Statistics, Taylor & Francis Journals, vol. 43(2), pages 401-412, April.
    8. Callaway, Brantly & Sant’Anna, Pedro H.C., 2021. "Difference-in-Differences with multiple time periods," Journal of Econometrics, Elsevier, vol. 225(2), pages 200-230.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Arne Henningsen & Guy Low & David Wuepper & Tobias Dalhaus & Hugo Storm & Dagim Belay & Stefan Hirsch, 2026. "Estimating Causal Effects With Observational Data: Guidelines for Agricultural and Applied Economists," Journal of Agricultural Economics, Wiley Blackwell, vol. 77(2), pages 356-382, June.
    2. Cocco, Valentin & Chakir, Raja & Mouysset, Lauriane, 2025. "Guilty or scapegoat? Land consolidation and hedgerow decline," Journal of Environmental Economics and Management, Elsevier, vol. 133(C).
    3. Jeanet Sinding Bentzen & Alessandro Pizzigolotto & Lena Lindbjerg Sperling, 2026. "Divine Policy: The Impact of Religion in Government," American Economic Journal: Applied Economics, American Economic Association, vol. 18(1), pages 195-247, January.
    4. Martin Huber & Sarina Joy Oberhansli, 2026. "Difference-in-differences for mediation analysis using double machine learning," Papers 2602.23877, arXiv.org.
    5. Daniel Winkler & Christian Hotz-Behofsits & Nils Wlömert & Dominik Papies & Jūra Liaukonytė, 2026. "Does TikTok promote or cannibalize music streaming? Estimands and identification with heavy-tailed outcomes," Quantitative Marketing and Economics (QME), Springer, vol. 24(1), pages 1-63, December.
    6. Jeffrey M Wooldridge, 2023. "Simple approaches to nonlinear difference-in-differences with panel data," The Econometrics Journal, Royal Economic Society, vol. 26(3), pages 31-66.
    7. Dmitry Arkhangelsky & Guido Imbens, 2023. "Causal Models for Longitudinal and Panel Data: A Survey," Papers 2311.15458, arXiv.org, revised Jun 2024.
    8. Roth, Jonathan & Sant’Anna, Pedro H.C. & Bilinski, Alyssa & Poe, John, 2023. "What’s trending in difference-in-differences? A synthesis of the recent econometrics literature," Journal of Econometrics, Elsevier, vol. 235(2), pages 2218-2244.
    9. Yang Ding & Fernando Moreira, 2025. "Funding and productivity: Does winning grants affect the scientific productivity of recipients? Evidence from the social sciences and economics," Scientometrics, Springer;Akadémiai Kiadó, vol. 130(3), pages 1831-1870, March.
    10. Khalil, Umair & Sanfelice, Viviane, 2025. "Housing Improvement and Crime," Journal of Public Economics, Elsevier, vol. 242(C).
    11. Goodman-Bacon, Andrew, 2021. "Difference-in-differences with variation in treatment timing," Journal of Econometrics, Elsevier, vol. 225(2), pages 254-277.
    12. Lucas Z. Zhang, 2024. "Continuous difference-in-differences with double/debiased machine learning," Papers 2408.10509, arXiv.org, revised Dec 2025.
    13. Kyunghoon Ban & D'esir'e K'edagni, 2022. "Robust Difference-in-differences Models," Papers 2211.06710, arXiv.org, revised Aug 2023.
    14. Coulibaly, Yacouba, 2024. "Resource-backed loans and ecological efficiency of human development: Evidence from African countries," Ecological Economics, Elsevier, vol. 224(C).
    15. Yixiao Sun & Haitian Xie & Yuhang Zhang, 2025. "Difference-in-Differences Meets Synthetic Control: Doubly Robust Identification and Estimation," Papers 2503.11375, arXiv.org, revised Sep 2026.
    16. Ridwan Ah Sheikh & Sunil Kanwar, 2025. "Revisiting the impact of TRIPS on trade: Evidence from staggered difference-in-differences," Indira Gandhi Institute of Development Research, Mumbai Working Papers 2025-025, Indira Gandhi Institute of Development Research, Mumbai, India.
    17. Daisuke Kurisu & Yuta Okamoto & Taisuke Otsu, 2025. "Difference-in-Differences with Interval Data," Papers 2512.08759, arXiv.org.
    18. Shoya Ishimaru, 2026. "Estimating Treatment Effects in Panel Data Without Parallel Trends," Papers 2601.08281, arXiv.org, revised Sep 2026.
    19. Young Ahn & Hiroyuki Kasahara, 2026. "Event-Study Designs for Discrete Outcomes with Latent Transition Heterogeneity," Papers 2603.07914, arXiv.org, revised Sep 2026.
    20. Yajima, Naonari & Arimura, Toshi H., 2022. "Promoting energy efficiency in Japanese manufacturing industry through energy audits: Role of information provision, disclosure, target setting, inspection, reward, and organizational structure," Energy Economics, Elsevier, vol. 114(C).

    More about this item

    NEP fields

    This paper has been announced in the following NEP Reports:

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:arx:papers:2608.18375. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: arXiv administrators (email available below). General contact details of provider: https://arxiv.org/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.