Commit 67a87e3
Fix ContinuousDiD bread normalization and panel-level survey metadata from PR #226 review (round 4)
- ContinuousDiD: normalize WLS bread by weighted treated mass (not raw
count) for consistency with downstream IF score denominators; fixes
ACRT_glob/ATT(d)/ACRT(d) survey SEs when subgroup-average weights differ
- ContinuousDiD/EfficientDiD: recompute survey_metadata from unit-level
ResolvedSurveyDesign so reported effective_n/n_psu/df_survey match
the inference actually run (not the panel-level overcount)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 1166024 commit 67a87e3
2 files changed
Lines changed: 32 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
512 | 512 | | |
513 | 513 | | |
514 | 514 | | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
515 | 524 | | |
516 | 525 | | |
517 | 526 | | |
| |||
948 | 957 | | |
949 | 958 | | |
950 | 959 | | |
| 960 | + | |
951 | 961 | | |
| 962 | + | |
| 963 | + | |
952 | 964 | | |
953 | | - | |
| 965 | + | |
954 | 966 | | |
955 | | - | |
| 967 | + | |
956 | 968 | | |
957 | 969 | | |
958 | 970 | | |
| |||
1220 | 1232 | | |
1221 | 1233 | | |
1222 | 1234 | | |
1223 | | - | |
| 1235 | + | |
1224 | 1236 | | |
1225 | 1237 | | |
1226 | 1238 | | |
| |||
1229 | 1241 | | |
1230 | 1242 | | |
1231 | 1243 | | |
| 1244 | + | |
1232 | 1245 | | |
1233 | 1246 | | |
1234 | 1247 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
667 | 667 | | |
668 | 668 | | |
669 | 669 | | |
670 | | - | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
671 | 675 | | |
672 | 676 | | |
673 | 677 | | |
674 | 678 | | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
675 | 690 | | |
676 | 691 | | |
677 | 692 | | |
| |||
0 commit comments