Commit d0aefae
Reorder solve_logit effective-sample checks: rank reduction before size gate
Move the n_pos <= k identification check AFTER rank-deficient column
dropping so that warn/silent modes can drop redundant columns on the
positive-weight subset before rejecting. Previously a valid design
with one redundant covariate on the effective sample was rejected
instead of proceeding with column dropping.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent d682bf4 commit d0aefae
1 file changed
Lines changed: 10 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1217 | 1217 | | |
1218 | 1218 | | |
1219 | 1219 | | |
1220 | | - | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
1221 | 1223 | | |
1222 | | - | |
1223 | | - | |
1224 | | - | |
1225 | | - | |
1226 | | - | |
1227 | | - | |
1228 | | - | |
1229 | 1224 | | |
1230 | 1225 | | |
1231 | 1226 | | |
| |||
1247 | 1242 | | |
1248 | 1243 | | |
1249 | 1244 | | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
1250 | 1252 | | |
1251 | 1253 | | |
1252 | 1254 | | |
| |||
0 commit comments