Commit d26d498
Fix EfficientDiD fweight consistency and BaconDecomposition index safety from PR #226 review (round 5)
- EfficientDiD: use resolved survey weights directly for unit-level
estimation (Omega*, EIF, cohort fractions) instead of separately
renormalized raw column, ensuring fweight/aweight consistency with TSL
- BaconDecomposition: store survey weights as DataFrame column for safe
label-based subsetting in _recompute_exact_weights, preventing
out-of-bounds errors on non-default DataFrame indexes
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 67a87e3 commit d26d498
2 files changed
Lines changed: 10 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
690 | 690 | | |
691 | 691 | | |
692 | 692 | | |
693 | | - | |
694 | | - | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
695 | 698 | | |
696 | 699 | | |
697 | 700 | | |
| |||
742 | 745 | | |
743 | 746 | | |
744 | 747 | | |
745 | | - | |
| 748 | + | |
746 | 749 | | |
747 | 750 | | |
748 | 751 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
386 | 379 | | |
387 | 380 | | |
388 | 381 | | |
| |||
0 commit comments