Difference-in-Differences Estimators for Treatments Continuously Distributed at Every Period

Clément de Chaisemartin, Xavier D'Haultfœuille, Doulo Sow, Gonzalo Vazquez-Bare, Félix Pasquier
1/18/2022
econ.EM

Official code: Credible-Answers/did_multiplegt_stat (12 stars, Stata, last commit 2026-01-10).

Abstract

When studying the effects of taxes, tariffs, or prices using panel data, the treatment is often continuously distributed in every period. We develop difference-in-differences (DID) estimators for such settings.

Show full abstract

We partition units into switchers, whose treatment changes between consecutive periods, and stayers, whose treatment remains constant. Under a parallel-trends assumption, we show that the slopes of switchers' potential outcomes with respect to the treatment are nonparametrically identified by DID comparisons between switchers and stayers sharing the same baseline treatment level. Conditioning on the baseline treatment is key, as it ensures that the underlying parallel-trends assumption accommodates time-varying treatment effects. We then study two weighted averages of these slopes, discuss their respective advantages, and propose for each a doubly robust, semiparametrically efficient, and $\sqrt{n}$-consistent estimator. Finally, we extend our framework to instrumental variables and illustrate it by estimating the effects of gasoline taxes on prices and fuel consumption.

View on arXivView PDF

Code Implementations(1)

|| Stata | R || Estimation of Difference-in-Difference (DID) Estimators for Treatments and Instruments Continuously Distributed at Every Period with Stayers.

124Stata, RJan 29, 202410 months agoNOASSERTION

Similar Papers

Cite this paper

@article{chaisemartin2022differenceindifferences,
  title  = {Difference-in-Differences Estimators for Treatments Continuously Distributed at Every Period},
  author = {Clément de Chaisemartin and Xavier D'Haultfœuille and Doulo Sow and Gonzalo Vazquez-Bare and Félix Pasquier},
  year   = {2022},
  eprint = {2201.06898},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2201.06898}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2201.06898.svg)](https://codeofpaper.com/paper/2201.06898)

Discussion