Commit 20f37e1
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 c47a91a commit 20f37e1
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 | |
|---|---|---|---|
| |||
429 | 429 | | |
430 | 430 | | |
431 | 431 | | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
443 | 436 | | |
444 | 437 | | |
445 | 438 | | |
| |||
0 commit comments