Commit 42d3dff
Restore replicate-weight dispatch in aggregation, raise on zero-weight never-treated
- Add uses_replicate_variance branching in _aggregate_overall() and
_aggregate_event_study() to route replicate designs to
compute_replicate_if_variance() instead of compute_survey_if_variance()
- Change zero-weight never-treated guard from warning to ValueError for
covariates path — DR nuisance estimation requires positive-weight controls
- Add test_zero_weight_never_treated_raises for the new error path
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent aca9f8b commit 42d3dff
2 files changed
Lines changed: 49 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
608 | 608 | | |
609 | 609 | | |
610 | 610 | | |
611 | | - | |
612 | | - | |
613 | | - | |
614 | | - | |
615 | | - | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
616 | 615 | | |
617 | 616 | | |
618 | 617 | | |
| |||
1274 | 1273 | | |
1275 | 1274 | | |
1276 | 1275 | | |
1277 | | - | |
1278 | | - | |
1279 | | - | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
1280 | 1279 | | |
1281 | 1280 | | |
1282 | 1281 | | |
1283 | | - | |
1284 | 1282 | | |
1285 | | - | |
1286 | 1283 | | |
1287 | | - | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
1288 | 1297 | | |
1289 | 1298 | | |
1290 | 1299 | | |
| |||
1387 | 1396 | | |
1388 | 1397 | | |
1389 | 1398 | | |
1390 | | - | |
1391 | 1399 | | |
1392 | | - | |
| 1400 | + | |
| 1401 | + | |
| 1402 | + | |
| 1403 | + | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
1393 | 1413 | | |
1394 | 1414 | | |
1395 | 1415 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1088 | 1088 | | |
1089 | 1089 | | |
1090 | 1090 | | |
1091 | | - | |
| 1091 | + | |
1092 | 1092 | | |
1093 | 1093 | | |
1094 | 1094 | | |
1095 | 1095 | | |
1096 | 1096 | | |
1097 | | - | |
1098 | | - | |
1099 | 1097 | | |
1100 | 1098 | | |
1101 | 1099 | | |
| |||
1107 | 1105 | | |
1108 | 1106 | | |
1109 | 1107 | | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
1110 | 1123 | | |
1111 | 1124 | | |
1112 | 1125 | | |
| |||
0 commit comments