Commit d35fe91
committed
PR #454 R3 polish: warning string accuracy + boundary convention docs
R3 verdict was ✅ Looks good with two P3 informational items:
1. Warning string accuracy: the always-treated remap warning told users
to "pass first_treat=0 or first_treat=np.inf explicitly to silence
this warning," but `first_treat` is the column-name argument to
`fit()`, not a value slot. Rewrote to "recode the affected rows'
first_treat values to 0 or np.inf in your input data before fitting"
to point users at the actual remediation surface.
2. Test class docstring: clarified that the implementation contract
`first_treat <= min(time)` includes the `== min(time)` boundary case
that the paper's strict `t_i < 1` shorthand excludes, and explained
the pragmatic rationale (units treated at the first observable
period have no untreated cell and cannot contribute to any 2x2 DD
as a treated cohort). Aligns with merged registry note wording and
removes the shorthand-vs-implementation ambiguity that the R3
reviewer flagged.
Tests: 61 pass in test_methodology_bacon.py + test_bacon.py, 3 skipped
(R parity).1 parent 785c65f commit d35fe91
2 files changed
Lines changed: 23 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
575 | 575 | | |
576 | 576 | | |
577 | 577 | | |
578 | | - | |
579 | | - | |
580 | | - | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
581 | 582 | | |
582 | 583 | | |
583 | 584 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
487 | 487 | | |
488 | 488 | | |
489 | 489 | | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
498 | 509 | | |
499 | 510 | | |
500 | 511 | | |
| |||
0 commit comments