Commit 3798bd4
Fix ContinuousDiD fweight TSL scaling and BaconDecomposition empty-cell guard from PR #226 review (round 6)
- ContinuousDiD: rescale IFs by unit-level total survey mass
(unit_resolved.weights.sum()) instead of hard-coded n_units, so TSL
SEs are correct for fweight designs where mass != n_units
- BaconDecomposition: add empty-cell guard in _compute_treated_vs_never
before np.average() to prevent crashes on unbalanced/filtered panels
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent d26d498 commit 3798bd4
2 files changed
Lines changed: 20 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
822 | 822 | | |
823 | 823 | | |
824 | 824 | | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
825 | 834 | | |
826 | 835 | | |
827 | 836 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
639 | 639 | | |
640 | 640 | | |
641 | 641 | | |
642 | | - | |
643 | | - | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
644 | 645 | | |
645 | 646 | | |
646 | 647 | | |
| |||
1198 | 1199 | | |
1199 | 1200 | | |
1200 | 1201 | | |
1201 | | - | |
1202 | | - | |
1203 | | - | |
1204 | | - | |
1205 | | - | |
1206 | | - | |
1207 | | - | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
1208 | 1210 | | |
1209 | 1211 | | |
1210 | 1212 | | |
| |||
0 commit comments