Commit 987bdcd
Address PR #389 R3 P2: split staggered-event-study failure modes
The HAD "Panel-only event-study restriction" subsection in
`docs/troubleshooting.rst` overstated when staggered multi-cohort
event-study inputs raise. Per `had.py:1230-1366` and `had.py:1470-1499`
(also documented in `docs/methodology/REGISTRY.md:2408, 2533`):
- Common-adoption panel (single first-treat period): `first_treat_col`
optional; the period is auto-inferred from the dose invariant.
- Staggered panel WITH `first_treat_col`: estimator auto-filters to the
last-treatment cohort + never-treated and emits a UserWarning.
- Staggered panel WITHOUT `first_treat_col`: estimator raises (the only
actual failure mode for this restriction).
Rewrote the cause to spell out the dispatch and made `first_treat_col`
the primary remedy; kept manual cohort subsetting as an equivalent that
skips the UserWarning.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent f63f40b commit 987bdcd
1 file changed
Lines changed: 17 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
570 | 570 | | |
571 | 571 | | |
572 | 572 | | |
573 | | - | |
574 | | - | |
| 573 | + | |
575 | 574 | | |
576 | | - | |
577 | | - | |
578 | | - | |
579 | | - | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
580 | 582 | | |
581 | 583 | | |
582 | 584 | | |
583 | 585 | | |
584 | 586 | | |
585 | | - | |
586 | | - | |
587 | | - | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
588 | 594 | | |
589 | | - | |
| 595 | + | |
| 596 | + | |
590 | 597 | | |
591 | 598 | | |
592 | 599 | | |
593 | | - | |
594 | | - | |
595 | 600 | | |
596 | 601 | | |
597 | 602 | | |
| |||
0 commit comments