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 #412 R2 review (1 P2 — multi-baseline test was vacuous)
The prior `test_per_path_heterogeneity_no_multi_baseline_warning`
used `_by_path_het_data` whose paths all start with `D=0`, so it
never exercised the multi-baseline switcher panel regime claimed in
REGISTRY ("cohort dummies absorb baseline by construction"). The
new CI reviewer flagged this as a P2 claim-vs-test mismatch.
Replaces the test with a TRUE multi-baseline DGP via new
`_multi_baseline_het_data` static fixture: 60 joiners (D_{g,1}=0,
path (0,1,1,1)) + 60 leavers (D_{g,1}=1, path (1,0,0,0)), F_g in
{3,4,5} for both baselines. Selected via
`paths_of_interest=[(0,1,1,1), (1,0,0,0)]`. Test now asserts:
1. Fixture sanity: switcher baselines actually span {0, 1}.
2. Both selected paths populate `path_heterogeneity_effects`.
3. Each path has ≥1 finite (path, l) entry — confirms the regression
is non-degenerate under multi-baseline switchers.
4. No multi-baseline UserWarning emitted (cohort dummies absorb).
5. No verbatim `by_path / paths_of_interest + controls/trends_linear`
divergence warning emitted (strict text-fragment check).
Empirically verified: this fixture produces finite beta/SE on every
in-window horizon for both paths and emits zero baseline warnings.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments