Commit 227ae50
Address CI review: pscore fallback, zero-mass subgroups, test coverage
Fix survey-weighted propensity fallback to use np.average(PA4, weights=sw)
instead of unweighted np.mean(PA4). Add zero-weight subgroup detection in
_compute_ddd_gt_gc for subpopulation/domain designs. Fix existing test
expecting NotImplementedError for invalid survey_design type (now TypeError
from _resolve_survey_for_fit). Add covariate-adjusted survey tests for
reg/ipw/dr and combined_weights=False replicate test.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent b552cb8 commit 227ae50
3 files changed
Lines changed: 260 additions & 115 deletions
File tree
- diff_diff
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
924 | 924 | | |
925 | 925 | | |
926 | 926 | | |
927 | | - | |
928 | | - | |
929 | | - | |
930 | | - | |
931 | | - | |
932 | | - | |
933 | | - | |
934 | | - | |
935 | | - | |
936 | | - | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
937 | 948 | | |
938 | 949 | | |
939 | 950 | | |
| |||
1294 | 1305 | | |
1295 | 1306 | | |
1296 | 1307 | | |
1297 | | - | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
1298 | 1318 | | |
1299 | 1319 | | |
1300 | 1320 | | |
| |||
0 commit comments