Skip to content
1 change: 1 addition & 0 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ Related tracking surfaces:
| `ImputationDiDResults.pretrend_test()` emits pandas' `Pandas4Warning` ("The inplace keyword in DataFrame.drop is deprecated", PDEP-8) on pandas 3.1: three `drop(..., inplace=True)` calls in the lead-regression path. Rebind instead of dropping in place, and grep the package for the remaining `inplace=True` uses in the same pass. | `imputation_aggregation.py` | 4.0 tutorial review | Quick | Low |
| Conley bandwidth diagnostic: when `conley_cutoff_km` covers the whole treated set (one treated spatial cluster inside the bandwidth), the spatial-HAC meat collapses and the SE falls far below HC1 on data with no spatial correlation (tutorial 23's panel: HC1 0.117; Conley 0.117 at 0.5 km, 0.090 at 25 km, 0.062 at 100 km). This is the usual large-bandwidth HAC degeneracy, not a variance bug, but nothing warns. Candidate: a `UserWarning` when the share of treated-treated pairs inside the cutoff exceeds a threshold; the threshold needs a small simulation to choose. | `conley.py`, `spillover.py` | 4.0 tutorial review | Mid | Low |
| No public idiom for a static staggered TWFE with a time-varying covariate (`Y ~ D_it + X_it` with unit and calendar fixed effects): `TwoWayFixedEffects.fit` is 2x2-shaped in static mode and `decompose()` takes no covariates, so tutorial 33's "include the bad control" benchmark builds it from `within_transform` plus `solve_ols`. Either document that route as the supported one or add a staggered static mode. | `twfe.py`, `docs/tutorials/33_bad_controls.ipynb` | 4.0 tutorial review | Mid | Low |
| `SyntheticDiD` Frank-Wolfe convergence on an ordinary panel (tutorial 03: 3 treated and 40 control units, 14 periods, outcomes 30-80, noise sd 0.5): (1) `variance_method="bootstrap"` warns "Frank-Wolfe did not converge on 199 of 199 valid bootstrap draws" on the Rust backend, so the refit bootstrap cannot be shown warning-free and the tutorial demonstrates placebo and jackknife only; (2) on the pure-Python backend the placebo and jackknife fits warn "Frank-Wolfe SC weight solver did not converge in 100 iterations" and "... in 10000 iterations" where the Rust backend is silent on the same data and returns the same ATT. Establish whether the iteration cap or tolerance is too tight for refits, and why the two backends differ in what they report. Same family as the tutorial-18 row below. | `synthetic_did.py`, `utils.py`, `rust/src/` | 4.0 tutorial review | Mid | Low |

### Performance

Expand Down
25 changes: 25 additions & 0 deletions changelog.d/20261125-tutorials-fundamentals.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
### Documentation
- **Fundamentals tutorials repaired and brought to the tutorial conventions**
(`01_basic_did`, `02_staggered_did`, `03_synthetic_did`, `08_triple_diff`,
`09_real_world_examples`). Each now states its estimand and identifying
assumptions before the first fit, checks estimates against a stated truth
where the data is simulated, clusters panel fits at the unit, and is
committed with executed outputs and a drift test. Corrections of substance:
- `01`: the clustering example printed "Cluster-robust SE is 0.26x larger"
for a cluster-robust standard error that is smaller; the section now
explains why it is smaller in that design and when the opposite holds.
- `02`: the true effect path is stated (it was mis-described and never
compared with an estimate); `aggregate("event")`, which raises in 4.0, is
gone; pre-treatment estimates are read with simultaneous bands instead of
pointwise pass/fail; the Callaway-Sant'Anna vs Sun-Abraham "robustness
check" is replaced by an explanation of why the two coincide there.
- `03`: time weights are described correctly (fit on control units); the
count-based placebo p-value and its floor are explained; shipped
diagnostics replace hand-rolled ones.
- `08`: both plain two-way DiDs are shown to miss the truth where the triple
difference recovers it; the staggered example states its truth and
explains the two overall summaries.
- `09`: the Card-Krueger conclusion no longer rests on unclustered standard
errors; the Castle doctrine section explains the TWFE vs
Callaway-Sant'Anna gap by the baseline period and reads the pre-treatment
estimates as a warning rather than passing over them.
Loading
Loading