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
- Refactor _compute_bootstrap_pvalue to accept n_valid parameter,
eliminating duplicated p-value logic in _compute_effect_bootstrap_stats
- Extend np.errstate coverage in staggered_aggregation.py to wrap all
WIF division operations (not just matrix multiplication)
- Add deviation note to Methodology Registry documenting defensive
enhancement over R/Stata reference implementations
- Strengthen test assertions: verify warnings are captured and NaN SE
is accompanied by validity warnings
- Add test_validity_threshold_nan_se for edge case coverage
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Threshold: Returns NaN if <50% of bootstrap samples are valid
211
+
-**Note**: This is a defensive enhancement over reference implementations (R's `did::att_gt`, Stata's `csdid`) which may error or produce unhandled inf/nan in edge cases without informative warnings
211
212
212
213
**Reference implementation(s):**
213
214
- R: `did::att_gt()` (Callaway & Sant'Anna's official package)
0 commit comments