Commit 62578ac
Address PR #364 AI review R4: footer covers joiners/leavers/path_effects
P2: the bootstrap footer in summary() previously keyed "produced
non-finite SE on every target" only off overall_se and
event_study_effects, missing joiners_se / leavers_se / path_effects.
Because by_path zeros switcher-side contributions outside the
selected path while keeping controls intact, a per-path bootstrap
target can remain finite even when the overall/event-study target
degenerates (e.g., on a reversible panel where the mix of joiners +
leavers produces a zero centered IF). Without the broader predicate
the footer would falsely claim blanket failure while a finite
per-path SE sits in the rendered output below.
Fix: add joiners_has_finite_bootstrap_se,
leavers_has_finite_bootstrap_se, and
path_effects_has_finite_bootstrap_se guards, and a new mixed-validity
branch between the "used for event-study horizon inference" branch
and the blanket-failure branch:
"Note: bootstrap (N iterations) produced non-finite SE on the
overall/event-study target; {joiners, leavers, per-path} bootstrap
inference is populated."
Regression test
test_summary_footer_mixed_validity_surfaces_live_targets forces
overall_se / event_study_effects to NaN post-fit on a healthy bootstrap
fit (keeping path_effects finite), then asserts (a) the footer does
not claim blanket failure, (b) does not claim
"multiplier-bootstrap percentile inference" when overall is NaN, and
(c) mentions "per-path" + "bootstrap inference is populated".
Full dCDH regression: 215 pass. TestByPathBootstrap: 14 pass under
-m slow.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 21cffa4 commit 62578ac
2 files changed
Lines changed: 116 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
710 | 710 | | |
711 | 711 | | |
712 | 712 | | |
713 | | - | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
714 | 724 | | |
715 | 725 | | |
716 | 726 | | |
717 | 727 | | |
718 | 728 | | |
719 | 729 | | |
720 | 730 | | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
721 | 752 | | |
722 | 753 | | |
723 | 754 | | |
| |||
738 | 769 | | |
739 | 770 | | |
740 | 771 | | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
741 | 789 | | |
742 | 790 | | |
743 | 791 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4593 | 4593 | | |
4594 | 4594 | | |
4595 | 4595 | | |
| 4596 | + | |
| 4597 | + | |
| 4598 | + | |
| 4599 | + | |
| 4600 | + | |
| 4601 | + | |
| 4602 | + | |
| 4603 | + | |
| 4604 | + | |
| 4605 | + | |
| 4606 | + | |
| 4607 | + | |
| 4608 | + | |
| 4609 | + | |
| 4610 | + | |
| 4611 | + | |
| 4612 | + | |
| 4613 | + | |
| 4614 | + | |
| 4615 | + | |
| 4616 | + | |
| 4617 | + | |
| 4618 | + | |
| 4619 | + | |
| 4620 | + | |
| 4621 | + | |
| 4622 | + | |
| 4623 | + | |
| 4624 | + | |
| 4625 | + | |
| 4626 | + | |
| 4627 | + | |
| 4628 | + | |
| 4629 | + | |
| 4630 | + | |
| 4631 | + | |
| 4632 | + | |
| 4633 | + | |
| 4634 | + | |
| 4635 | + | |
| 4636 | + | |
| 4637 | + | |
| 4638 | + | |
| 4639 | + | |
| 4640 | + | |
| 4641 | + | |
| 4642 | + | |
| 4643 | + | |
| 4644 | + | |
| 4645 | + | |
| 4646 | + | |
| 4647 | + | |
| 4648 | + | |
| 4649 | + | |
| 4650 | + | |
| 4651 | + | |
| 4652 | + | |
| 4653 | + | |
| 4654 | + | |
| 4655 | + | |
| 4656 | + | |
| 4657 | + | |
| 4658 | + | |
| 4659 | + | |
| 4660 | + | |
| 4661 | + | |
| 4662 | + | |
4596 | 4663 | | |
4597 | 4664 | | |
4598 | 4665 | | |
| |||
0 commit comments