Heterogeneity-Robust Difference-in-Differences with Switching Treatments (de Chaisemartin-D'Haultfœuille)
The de Chaisemartin-D'Haultfoeuille estimator compares units whose treatment switches between consecutive periods with units whose treatment stays the same, giving a difference-in-differences effect that remains valid when effects vary across units and time.
de Chaisemartin-D'Haultfœuille 추정량은 인접 시점 사이에 처치가 바뀐 단위와 처치가 그대로인 단위를 비교해, 효과가 단위와 시점마다 달라도 타당한 이중차분 효과를 구하는 방법입니다.
Treatment in my panel turns on and off at different times for different regions; how do I estimate its effect without the bias of two-way fixed effects?
패널에서 지역마다 정책이 다른 시점에 켜졌다 꺼졌다 하는데, 이원 고정효과의 편향 없이 효과를 추정하려면 어떻게 하나요?
Compute, for each pair of consecutive periods, the outcome change of units that switch into treatment minus that of units that stay untreated, and the change of units that stay treated minus that of units that switch out, then average them weighted by the number of switchers. Dynamic effects after the first switch and placebo estimates before it, with unit-level bootstrap SEs, show persistence and pre-trends.
When to use Heterogeneity-Robust Difference-in-Differences with Switching Treatments (de Chaisemartin-D'Haultfœuille)
- Treatment adoption is staggered or treatment switches on and off.
- Effects may differ across units or over time, so two-way fixed effects can put negative weights on some comparisons.
- You need event-time effects and placebo checks from a balanced panel.
When to use something else
- Treatment never switches off and you want cohort-time effects; the Callaway-Sant'Anna staggered DiD is a direct alternative.
- You have a single treated unit and many periods; use synthetic control.
Assumptions and requirements
- Parallel trends between switchers and units with stable treatment.
- No anticipation of treatment.
- Binary treatment in a balanced panel (units with gaps are dropped).
What the analysis reports
- DID_M instantaneous effect with bootstrap CI
- Dynamic effects by event time
- Placebo estimates
- Number of switchers used and without controls
How to report it
The heterogeneity-robust estimator gave DID_M = [value] (bootstrap SE = [value], 95% CI [value] to [value]) from [value] switching unit-periods; placebo estimates were [value] and [value].
Related methods
- Staggered Difference-in-Differences
- Goodman-Bacon Decomposition
- Event Study Design
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with reference values computed independently in the test suite.
독립 계산. 시험에서 따로 계산한 참조값 대조 참조 시험 1건 통과.
Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.
허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.
Run Heterogeneity-Robust Difference-in-Differences with Switching Treatments (de Chaisemartin-D'Haultfœuille) on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable, a treatment indicator, a unit (entity) ID and a time variable
- Price
- 600 credits for one analysis up to 10,000 rows (complexity level 4); larger or wider data costs more. Optional methodologist review: 2400 credits.
- Checking
- Compared with independent computations
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.