You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Address PR #401 R6 review (1 P1 Cartesian-product test gap)
P1 (Documentation/Tests): the docstring claimed paths_of_interest
composed with bootstrap, per-path placebos, joint sup-t bands,
trends_linear, and trends_nonparam, but the new tests covered only
the analytical trends_* paths and a triple-combo (paths_of_interest
+ non-binary D + bootstrap + placebo). The R6 reviewer flagged two
specific gaps:
1. paths_of_interest + trends_linear=True + n_bootstrap > 0 +
placebo=True: post-bootstrap path_cumulated_event_study path
was untested.
2. paths_of_interest + trends_nonparam="state" + placebo=True +
n_bootstrap > 0: the set_ids flow through all four per-path
collectors (analytical, placebo, bootstrap, placebo-bootstrap)
was untested.
Plus the existing non-binary triple-combo's sup-t check was
vacuous (`assert res.path_sup_t_bands is not None` is satisfied by
`{}` when the strict-majority gate excludes every path).
Fixes:
- Add test_paths_of_interest_trends_linear_bootstrap_placebo
asserting path-set restriction, finite per-path bootstrap SE on
path_effects, populated post-bootstrap path_cumulated_event_study
with finite (effect, SE) per (path, horizon), and populated
per-path placebo for the same paths.
- Add test_paths_of_interest_trends_nonparam_bootstrap_placebo
asserting selector + set_ids flow through all four collectors:
finite analytical/bootstrap (effect, SE) on path_effects, finite
per-path placebo (effect, SE).
- Tighten test_paths_of_interest_non_binary_bootstrap_placebo:
bump to 2 paths and n_bootstrap=400 so the sup-t strict-majority
gate fires, and assert >=1 finite crit_value AND non-NaN
cband_conf_int per (path, horizon) on path_effects (replacing
the vacuous "is not None" check).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments