Commit bb8edfc
Clear _replicate_df on refit, add CS zero-mass guards, document IF df
- Reset _replicate_df = None at start of LinearRegression.fit() so
reused model instances don't carry stale replicate df
- Add zero-effective-mass guards in CS _att_gt_* for survey-weighted
treated/control groups — return NaN for cells with zero weight
- Document in REGISTRY that IF-based replicate contrasts cannot fail
(weighted sums are always finite), so n_valid == R and df propagation
is not needed for IF paths
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 84809cd commit bb8edfc
3 files changed
Lines changed: 14 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1659 | 1659 | | |
1660 | 1660 | | |
1661 | 1661 | | |
| 1662 | + | |
| 1663 | + | |
| 1664 | + | |
1662 | 1665 | | |
1663 | 1666 | | |
1664 | 1667 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
604 | 604 | | |
605 | 605 | | |
606 | 606 | | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
607 | 613 | | |
608 | 614 | | |
609 | 615 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2029 | 2029 | | |
2030 | 2030 | | |
2031 | 2031 | | |
2032 | | - | |
2033 | | - | |
2034 | | - | |
| 2032 | + | |
| 2033 | + | |
| 2034 | + | |
| 2035 | + | |
| 2036 | + | |
2035 | 2037 | | |
2036 | 2038 | | |
2037 | 2039 | | |
| |||
0 commit comments