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

Difference-in-Differences with Time-varying Continuous Treatments using Double/Debiased Machine Learning

Author

Listed:
  • Michel F. C. Haddad
  • Martin Huber
  • Jos'e Eduardo Medina-Reyes
  • Lucas Z. Zhang

Abstract

We propose a difference-in-differences (DiD) framework designed for time-varying continuous treatments across multiple periods. Specifically, we estimate the average treatment effect on the treated (ATET) by comparing distinct non-zero treatment intensities. Identification rests on a conditional parallel trends assumption that accounts for observed covariates and past treatment histories. Our approach allows for lagged treatment effects and, in repeated cross-sectional settings, accommodates compositional changes in covariates. We develop kernel-based ATET estimators for both repeated cross-sections and panel data, leveraging the double/debiased machine learning framework to handle potentially high-dimensional covariates and histories. We establish the asymptotic properties of our estimators under mild regularity conditions and demonstrate via simulations that their undersmoothed versions perform well in finite samples. As an empirical illustration, we apply our estimator to assess the effect of the second-dose COVID-19 vaccination rate in Brazil and find that higher vaccination rates reduce COVID-19-related mortality after a lag of several weeks.

Suggested Citation

  • Michel F. C. Haddad & Martin Huber & Jos'e Eduardo Medina-Reyes & Lucas Z. Zhang, 2024. "Difference-in-Differences with Time-varying Continuous Treatments using Double/Debiased Machine Learning," Papers 2410.21105, arXiv.org, revised Jan 2026.
  • Handle: RePEc:arx:papers:2410.21105
    as

    Download full text from publisher

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

    References listed on IDEAS

    as
    1. Kosuke Imai & David A. van Dyk, 2004. "Causal Inference With General Treatment Regimes: Generalizing the Propensity Score," Journal of the American Statistical Association, American Statistical Association, vol. 99, pages 854-866, January.
    2. Lechner, Michael, 2011. "The Estimation of Causal Effects by Difference-in-Difference Methods," Foundations and Trends(R) in Econometrics, now publishers, vol. 4(3), pages 165-224, November.
    3. Martin Huber & Yu‐Chin Hsu & Ying‐Ying Lee & Layal Lettry, 2020. "Direct and indirect effects of continuous treatments based on generalized propensity score weighting," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 35(7), pages 814-840, November.
    4. Kirill Borusyak & Xavier Jaravel & Jann Spiess, 2024. "Revisiting Event-Study Designs: Robust and Efficient Estimation," The Review of Economic Studies, Review of Economic Studies Ltd, vol. 91(6), pages 3253-3285.
    5. Fan, Jianqing & Yao, Qiwei & Tong, Howell, 1996. "Estimation of conditional densities and sensitivity measures in nonlinear dynamical systems," LSE Research Online Documents on Economics 6704, London School of Economics and Political Science, LSE Library.
    6. Kyle Colangelo & Ying-Ying Lee, 2020. "Double Debiased Machine Learning Nonparametric Inference with Continuous Treatments," Papers 2004.03036, arXiv.org, revised Sep 2023.
    7. Victor Chernozhukov & Denis Chetverikov & Mert Demirer & Esther Duflo & Christian Hansen & Whitney Newey & James Robins, 2018. "Double/debiased machine learning for treatment and structural parameters," Econometrics Journal, Royal Economic Society, vol. 21(1), pages 1-68, February.
    8. Sun, Liyang & Abraham, Sarah, 2021. "Estimating dynamic treatment effects in event studies with heterogeneous treatment effects," Journal of Econometrics, Elsevier, vol. 225(2), pages 175-199.
    9. Goodman-Bacon, Andrew, 2021. "Difference-in-differences with variation in treatment timing," Journal of Econometrics, Elsevier, vol. 225(2), pages 254-277.
    10. Alexandre Belloni & Victor Chernozhukov & Christian Hansen, 2014. "Inference on Treatment Effects after Selection among High-Dimensional Controlsâ€," The Review of Economic Studies, Review of Economic Studies Ltd, vol. 81(2), pages 608-650.
    11. Huber, Martin & Lechner, Michael & Wunsch, Conny, 2013. "The performance of estimators based on the propensity score," Journal of Econometrics, Elsevier, vol. 175(1), pages 1-21.
    12. Brantly Callaway & Andrew Goodman-Bacon & Pedro H. C. Sant'Anna, 2021. "Difference-in-Differences with a Continuous Treatment," Papers 2107.02637, arXiv.org, revised Dec 2025.
    13. Edward H. Kennedy & Zongming Ma & Matthew D. McHugh & Dylan S. Small, 2017. "Non-parametric methods for doubly robust estimation of continuous treatment effects," Journal of the Royal Statistical Society Series B, Royal Statistical Society, vol. 79(4), pages 1229-1245, September.
    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, 2024. "Estimating Causal Effects with Observational Data: Guidelines for Agricultural and Applied Economists," IFRO Working Paper 2024/03, University of Copenhagen, Department of Food and Resource Economics.
    2. Gregory Faletto, 2023. "Fused Extended Two-Way Fixed Effects for Difference-in-Differences With Staggered Adoptions," Papers 2312.05985, arXiv.org, revised Apr 2025.
    3. Martin Huber, 2019. "An introduction to flexible methods for policy evaluation," Papers 1910.00641, arXiv.org.
    4. Kyle Colangelo & Ying-Ying Lee, 2019. "Double debiased machine learning nonparametric inference with continuous treatments," CeMMAP working papers CWP72/19, Centre for Microdata Methods and Practice, Institute for Fiscal Studies.
    5. Bradford, Ashley C. & Fu, Wei & You, Shijun, 2024. "The devastating dance between opioid and housing crises: Evidence from OxyContin reformulation," Journal of Health Economics, Elsevier, vol. 98(C).
    6. Kyle Colangelo & Ying-Ying Lee, 2019. "Double debiased machine learning nonparametric inference with continuous treatments," CeMMAP working papers CWP54/19, Centre for Microdata Methods and Practice, Institute for Fiscal Studies.
    7. Yikun Zhang & Yen-Chi Chen, 2025. "Doubly Robust Inference on Causal Derivative Effects for Continuous Treatments," Papers 2501.06969, arXiv.org, revised Apr 2025.
    8. Yizhen Xu & Numair Sani & AmirEmad Ghassami & Ilya Shpitser, 2021. "Multiply Robust Causal Mediation Analysis with Continuous Treatments," Papers 2105.09254, arXiv.org, revised Oct 2024.
    9. Philipp Bach & Sven Klaassen & Jannis Kueck & Mara Mattes & Martin Spindler, 2025. "Sensitivity Analysis for Treatment Effects in Difference-in-Differences Models using Riesz Representation," Papers 2510.09064, arXiv.org.
    10. Lucas Z. Zhang, 2024. "Continuous difference-in-differences with double/debiased machine learning," Papers 2408.10509, arXiv.org, revised Dec 2025.
    11. Michael Zimmert & Michael Lechner, 2019. "Nonparametric estimation of causal heterogeneity under high-dimensional confounding," Papers 1908.08779, arXiv.org.
    12. Leek, Lauren Caroline & Bischl, Simeon, 2024. "How Central Bank Independence Shapes Monetary Policy Communication: A Large Language Model Application," SocArXiv yrhka, Center for Open Science.
    13. Kamila Cygan-Rehm, 2022. "Lifetime Consequences of Lost Instructional Time in the Classroom: Evidence from Shortened School Years," CESifo Working Paper Series 9892, CESifo.
    14. Leek, Lauren & Bischl, Simeon, 2025. "How central bank independence shapes monetary policy communication: A Large Language Model application," European Journal of Political Economy, Elsevier, vol. 87(C).
    15. Dor Leventer, 2025. "Conditional Triple Difference-in-Differences," Papers 2502.16126, arXiv.org, revised Jun 2025.
    16. repec:osf:socarx:yrhka_v1 is not listed on IDEAS
    17. Tübbicke Stefan, 2022. "Entropy Balancing for Continuous Treatments," Journal of Econometric Methods, De Gruyter, vol. 11(1), pages 71-89, January.
    18. Kim, Yeong Jae & Cho, Seong-Hoon, 2023. "Is the discovery of oil a blessing or curse in the era of climate change?," Resources Policy, Elsevier, vol. 87(PA).
    19. Cl'ement de Chaisemartin & Xavier D'Haultf{oe}uille & F'elix Pasquier & Doulo Sow & Gonzalo Vazquez-Bare, 2022. "Difference-in-Differences Estimators for Treatments Continuously Distributed at Every Period," Papers 2201.06898, arXiv.org, revised Aug 2025.
    20. Ying-Ying Lee & Chu-An Liu, 2024. "Lee Bounds with a Continuous Treatment in Sample Selection," Papers 2411.04312, arXiv.org, revised Oct 2025.
    21. Lorenzo Testa & Edward H. Kennedy & Matthew Reimherr, 2025. "Efficient Difference-in-Differences Estimation when Outcomes are Missing at Random," Papers 2509.25009, arXiv.org, revised Jan 2026.

    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:2410.21105. 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: http://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.