DiD with wild cluster bootstrap
Difference-in-differences effect with restricted wild cluster bootstrap p-value and test-inversion confidence interval for few clusters.
와일드 클러스터 부트스트랩 이중차분 — 제한된 와일드 클러스터 부트스트랩 p값과 검정 역전 신뢰구간으로, 군집이 적을 때의 이중차분 효과를 추론합니다.
Runs Difference in Differences (DiD) with: inference set to “wild_cluster”.
기본 방법(Difference in Differences (DiD))에 다음 설정을 고정해 실행합니다: inference = wild_cluster.
A policy changed in only eight states; how do I get a trustworthy p-value for its difference-in-differences effect?
정책이 8개 주에서만 바뀌었는데, 이중차분 효과의 p값을 믿을 만하게 구하려면 어떻게 하나요?
Inference uses the restricted wild cluster bootstrap, with a confidence interval found by inverting the bootstrap test, which holds up when clusters are few. Behind it is Difference in Differences (DiD) with inference = wild_cluster already set; checks and report are the same as for Difference in Differences (DiD).
When to use DiD with wild cluster bootstrap
- You have few treated or total clusters, roughly under 30 to 50.
- Conventional cluster-robust standard errors look too small.
When to use something else
- Only one or two clusters are treated; even the wild cluster bootstrap over-rejects, and randomisation inference or synthetic control is safer.
- 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.