Commit 2c325f3
Address PR #363 R6 review (1 P2 + 1 P3)
R6 P2 (event-study opt-out overhead): cband=False on the weighted
event-study path no longer allocates the stacked (G, H) IF matrix or
forces per-horizon IF return on the weights= shortcut. Split two
flags internally:
needs_per_horizon_if = survey= path OR (weights= AND cband=True)
needs_stacked_if_matrix = weights= AND cband=True (alias for
weighted_es AND cband)
- Psi allocation gated on needs_stacked_if_matrix.
- _fit_continuous force_return_influence gated on
(needs_stacked_if_matrix AND resolved_survey_unit_full is None) —
under survey= path, _fit_continuous returns the IF anyway via its
resolved_survey_unit gate, so no extra cost.
- _fit_mass_point_2sls return_influence gated on
needs_per_horizon_if — survey= path needs the per-horizon IF for
the Binder-TSL override regardless of cband.
Net effect: cband=False + weights= shortcut + weighted_es skips the
O(GH) Psi allocation and the per-horizon IF work entirely. cband=True
paths and survey= paths unchanged.
R6 P3 (event-study survey= integration coverage): added two end-to-end
integration tests for the previously-unguarded positive-path
estimator-level survey= + aggregate='event_study' dispatch:
- test_survey_event_study_continuous_end_to_end: continuous_at_zero +
SurveyDesign(strata='stratum') — asserts variance_formula=
'survey_binder_tsl', survey_metadata.df_survey=G-n_strata, cband_*
populated, PSU dispatch through _aggregate_unit_resolved_survey.
- test_survey_event_study_mass_point_end_to_end: mass_point +
SurveyDesign(strata=...) — asserts variance_formula=
'survey_binder_tsl_2sls' and that the 2SLS IF flows through
per-horizon Binder-TSL + sup-t bootstrap.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 8d7cf94 commit 2c325f3
2 files changed
Lines changed: 138 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4127 | 4127 | | |
4128 | 4128 | | |
4129 | 4129 | | |
4130 | | - | |
4131 | | - | |
4132 | | - | |
4133 | | - | |
4134 | | - | |
| 4130 | + | |
| 4131 | + | |
| 4132 | + | |
| 4133 | + | |
| 4134 | + | |
| 4135 | + | |
| 4136 | + | |
| 4137 | + | |
| 4138 | + | |
| 4139 | + | |
| 4140 | + | |
| 4141 | + | |
4135 | 4142 | | |
4136 | 4143 | | |
4137 | 4144 | | |
| |||
4173 | 4180 | | |
4174 | 4181 | | |
4175 | 4182 | | |
4176 | | - | |
4177 | | - | |
4178 | | - | |
4179 | | - | |
4180 | | - | |
4181 | | - | |
| 4183 | + | |
| 4184 | + | |
| 4185 | + | |
| 4186 | + | |
| 4187 | + | |
| 4188 | + | |
| 4189 | + | |
| 4190 | + | |
| 4191 | + | |
| 4192 | + | |
4182 | 4193 | | |
4183 | 4194 | | |
4184 | 4195 | | |
4185 | 4196 | | |
4186 | 4197 | | |
4187 | | - | |
4188 | | - | |
4189 | | - | |
4190 | | - | |
4191 | | - | |
4192 | | - | |
| 4198 | + | |
| 4199 | + | |
| 4200 | + | |
| 4201 | + | |
| 4202 | + | |
| 4203 | + | |
| 4204 | + | |
4193 | 4205 | | |
4194 | 4206 | | |
4195 | 4207 | | |
| |||
4209 | 4221 | | |
4210 | 4222 | | |
4211 | 4223 | | |
4212 | | - | |
| 4224 | + | |
| 4225 | + | |
| 4226 | + | |
| 4227 | + | |
| 4228 | + | |
| 4229 | + | |
4213 | 4230 | | |
4214 | 4231 | | |
4215 | 4232 | | |
| |||
4222 | 4239 | | |
4223 | 4240 | | |
4224 | 4241 | | |
4225 | | - | |
| 4242 | + | |
4226 | 4243 | | |
4227 | 4244 | | |
4228 | 4245 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5351 | 5351 | | |
5352 | 5352 | | |
5353 | 5353 | | |
| 5354 | + | |
| 5355 | + | |
| 5356 | + | |
| 5357 | + | |
| 5358 | + | |
| 5359 | + | |
| 5360 | + | |
| 5361 | + | |
| 5362 | + | |
| 5363 | + | |
| 5364 | + | |
| 5365 | + | |
| 5366 | + | |
| 5367 | + | |
| 5368 | + | |
| 5369 | + | |
| 5370 | + | |
| 5371 | + | |
| 5372 | + | |
| 5373 | + | |
| 5374 | + | |
| 5375 | + | |
| 5376 | + | |
| 5377 | + | |
| 5378 | + | |
| 5379 | + | |
| 5380 | + | |
| 5381 | + | |
| 5382 | + | |
| 5383 | + | |
| 5384 | + | |
| 5385 | + | |
| 5386 | + | |
| 5387 | + | |
| 5388 | + | |
| 5389 | + | |
| 5390 | + | |
| 5391 | + | |
| 5392 | + | |
| 5393 | + | |
| 5394 | + | |
| 5395 | + | |
| 5396 | + | |
| 5397 | + | |
| 5398 | + | |
| 5399 | + | |
| 5400 | + | |
| 5401 | + | |
| 5402 | + | |
| 5403 | + | |
| 5404 | + | |
| 5405 | + | |
| 5406 | + | |
| 5407 | + | |
| 5408 | + | |
| 5409 | + | |
| 5410 | + | |
| 5411 | + | |
| 5412 | + | |
| 5413 | + | |
| 5414 | + | |
| 5415 | + | |
| 5416 | + | |
| 5417 | + | |
| 5418 | + | |
| 5419 | + | |
| 5420 | + | |
| 5421 | + | |
| 5422 | + | |
| 5423 | + | |
| 5424 | + | |
| 5425 | + | |
| 5426 | + | |
| 5427 | + | |
| 5428 | + | |
| 5429 | + | |
| 5430 | + | |
| 5431 | + | |
| 5432 | + | |
| 5433 | + | |
| 5434 | + | |
| 5435 | + | |
| 5436 | + | |
| 5437 | + | |
| 5438 | + | |
| 5439 | + | |
| 5440 | + | |
| 5441 | + | |
| 5442 | + | |
| 5443 | + | |
| 5444 | + | |
| 5445 | + | |
| 5446 | + | |
| 5447 | + | |
| 5448 | + | |
| 5449 | + | |
| 5450 | + | |
| 5451 | + | |
| 5452 | + | |
| 5453 | + | |
| 5454 | + | |
| 5455 | + | |
5354 | 5456 | | |
5355 | 5457 | | |
5356 | 5458 | | |
| |||
0 commit comments