Commit 564527e
committed
Fix summary() crash when outcome model is fit without adjust()
_outcome_estimates_summary() unconditionally called aipw(), which raises
when the frame has not been adjusted (aipw() needs adjust()-calibrated
responder weights on the target population scale). The changelog documents
the no-adjust() outcome-model workflow, so summary() on such a frame
crashed with a ValueError instead of reporting. Omit the mu_DR/AIPW block
when not adjusted while still showing mu_IPW and mu_OM, and add a
regression test.1 parent 39fe706 commit 564527e
2 files changed
Lines changed: 31 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3752 | 3752 | | |
3753 | 3753 | | |
3754 | 3754 | | |
3755 | | - | |
3756 | | - | |
3757 | 3755 | | |
3758 | 3756 | | |
3759 | 3757 | | |
| |||
3770 | 3768 | | |
3771 | 3769 | | |
3772 | 3770 | | |
3773 | | - | |
3774 | | - | |
3775 | 3771 | | |
| 3772 | + | |
| 3773 | + | |
| 3774 | + | |
| 3775 | + | |
| 3776 | + | |
| 3777 | + | |
| 3778 | + | |
| 3779 | + | |
| 3780 | + | |
| 3781 | + | |
| 3782 | + | |
| 3783 | + | |
| 3784 | + | |
3776 | 3785 | | |
3777 | 3786 | | |
3778 | 3787 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
318 | 336 | | |
319 | 337 | | |
320 | 338 | | |
| |||
0 commit comments