Commit b151613
Reject pscore_trim=0.0 to prevent infinite IPW weights; update docs
- Change pscore_trim validation from [0, 0.5) to (0, 0.5) since zero
trimming allows exact 1.0 propensity scores through to the weight
formula pscore/(1-pscore), producing inf/NaN
- Update REGISTRY.md fallback note to document error-mode re-raise
- Add pscore_trim to CallawaySantAnna and CallawaySantAnnaResults docstrings
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 96c71de commit b151613
4 files changed
Lines changed: 14 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
167 | 171 | | |
168 | 172 | | |
169 | 173 | | |
| |||
265 | 269 | | |
266 | 270 | | |
267 | 271 | | |
268 | | - | |
269 | | - | |
| 272 | + | |
| 273 | + | |
270 | 274 | | |
271 | 275 | | |
272 | 276 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
96 | 98 | | |
97 | 99 | | |
98 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
405 | | - | |
| 405 | + | |
| 406 | + | |
406 | 407 | | |
407 | 408 | | |
408 | 409 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3240 | 3240 | | |
3241 | 3241 | | |
3242 | 3242 | | |
3243 | | - | |
3244 | | - | |
3245 | | - | |
3246 | | - | |
| 3243 | + | |
| 3244 | + | |
| 3245 | + | |
| 3246 | + | |
3247 | 3247 | | |
3248 | 3248 | | |
3249 | 3249 | | |
| |||
0 commit comments