Commit c5015c7
Fix _estimate_max_pre_violation to use reference-aware pre_periods
Use the pre_periods list from _extract_event_study_params() instead of
hardcoded t < 0. With anticipation > 0, the reference period is at
e = -1 - anticipation, so periods -anticipation through -1 are NOT
pre-treatment and should not enter max_pre_violation.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 1f8a537 commit c5015c7
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1443 | 1443 | | |
1444 | 1444 | | |
1445 | 1445 | | |
1446 | | - | |
| 1446 | + | |
| 1447 | + | |
1447 | 1448 | | |
1448 | 1449 | | |
1449 | 1450 | | |
1450 | | - | |
| 1451 | + | |
1451 | 1452 | | |
1452 | 1453 | | |
1453 | 1454 | | |
| |||
0 commit comments