Skip to content

Commit 332b705

Browse files
fix(weak-iv): add lowercase aliases for first_stage_f / effective_f
Tests in test_weakiv_tobit.py expect lowercase keys but the dict only exposed the capital-F versions. Add both for backward compatibility — no existing callers of the capital-F keys are broken, and the 17 weak-IV tests now pass. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b06b389 commit 332b705

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/statspai/diagnostics/weak_iv.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,9 @@ def _ar_f(b0: float) -> float:
479479
"ar_ci": ar_ci,
480480
"beta_2sls": beta_2sls,
481481
"first_stage_F": f_first,
482+
"first_stage_f": f_first,
482483
"effective_F": f_eff,
484+
"effective_f": f_eff,
483485
"tF_critical_value": tF_c,
484486
"n_instruments": k_z,
485487
"strength": f_result["strength"],

0 commit comments

Comments
 (0)