Donald-Lang aggregated DiD
Difference-in-differences from group-by-period cell means with t(G-2) inference for few groups.
Donald-Lang 집계 이중차분 — 집단×시기 칸 평균으로 이중차분을 추정하고, 집단이 적을 때 t(G − 2) 분포로 추론합니다.
Runs Difference in Differences (DiD) with: inference set to “donald_lang”.
기본 방법(Difference in Differences (DiD))에 다음 설정을 고정해 실행합니다: inference = donald_lang.
Only four states adopted the policy and five did not; how do I get valid difference-in-differences inference with so few groups?
정책을 도입한 주가 넷, 아닌 주가 다섯뿐인데, 집단이 이렇게 적을 때 이중차분 추론을 제대로 하려면?
Outcomes are collapsed to group-by-period cell means and the difference-in-differences is estimated on those, with t inference on G − 2 degrees of freedom. Behind it is Difference in Differences (DiD) with inference = donald_lang already set; checks and report are the same as for Difference in Differences (DiD).
When to use Donald-Lang aggregated DiD
- The number of groups (states, schools) is small.
- Cluster-robust standard errors with few clusters would be unreliable.
When to use something else
- There are many groups; ordinary cluster-robust inference is fine and uses individual-level data more fully.
- You want to try other settings side by side; open Difference in Differences (DiD) and set the options yourself.
What you still provide
- Data: a table (CSV or Excel) with an outcome variable, a treatment indicator and a time variable.
Assumptions and requirements
The same as for Difference in Differences (DiD):
- Parallel trends: without treatment, both groups would have changed similarly
- No anticipation of treatment before it starts
- Group composition is stable over time
- No spillover of treatment to the comparison group
- Doubly robust option: parallel trends conditional on pre-treatment covariates, overlap of propensity scores, and a correct propensity-score or outcome-regression model (one of the two suffices)
What the analysis reports
The output of Difference in Differences (DiD), with the preset shown in the settings:
- DiD estimate (interaction coefficient) with cluster-robust standard errors
- Group-by-period means
- Event-study coefficients for pre- and post-treatment periods
- Pre-trend tests and a parallel trends plot
- Optional triple-differences (DDD) estimate with a third comparison dimension, its standard error, confidence interval and the two within-dimension DiD estimates
- Optional doubly robust DiD (Sant'Anna and Zhao 2020) for panel data with covariates: ATT combining a logistic propensity score and an outcome regression on the controls, with an influence-function standard error and confidence interval
How this is validated
검증 근거
This variant runs the same engine as Difference in Differences (DiD) with the settings above fixed, so the evidence is that method’s: results cross-checked against r. No separate checks of this preset are claimed. Read the base method’s validation record.
이 설정 묶음은 Difference in Differences (DiD)와 같은 엔진으로 돕니다. 검증 근거는 기본 방법의 것이며, 이 설정만 따로 검증했다고 주장하지 않습니다.
Other variants of Difference in Differences (DiD)
Run this variant
- Data you need
- a table (CSV or Excel) with an outcome variable, a treatment indicator and a time variable
- Price
- Same as Difference in Differences (DiD): 400 credits for one analysis up to 10,000 rows (complexity level 3); larger or wider data costs more. Optional methodologist review: 1800 credits.
- Checking
- Results cross-checked against R, as recorded for Difference in Differences (DiD) (see its checks)
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.