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
P1 Fixes:
- Fix degrees of freedom calculation to use effective rank (n_params_effective_)
instead of total columns when design matrix is rank-deficient. This ensures
correct t-statistics, p-values, and confidence intervals for identified
coefficients.
- Improve Rust backend error message for rank-deficient X'X to suggest using
solve_ols without skip_rank_check for R-style handling.
- Improve TWFE collinearity error message to surface actual dropped column names
and distinguish between treatment collinearity (error) vs covariate
collinearity (warning).
P2 Fixes:
- Add inference validation tests that verify degrees of freedom, p-values, and
confidence intervals are computed correctly when columns are dropped due to
rank deficiency.
Tests:
- test_rank_deficient_degrees_of_freedom: Verifies n_params_effective_ and df_
- test_rank_deficient_inference_uses_correct_df: Verifies p-value and CI
use correct df (n - rank)
- test_rank_deficient_inference_nan_for_dropped_coef: Verifies NaN inference
for dropped coefficients
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
0 commit comments