Commit 450c592
Address PR #347 R3: sync docs to implemented aggregation tags + real-fit no-scalar test
R3 approved (✅) with two non-blocking follow-ups; this commit
addresses both.
P2 (docs): ``REPORTING.md`` and ``business_report.rst`` still
listed the obsolete dCDH aggregation tags (``"DID_l"``, ``"l"``,
``"l_x"``, ``"l_fd"``, ``"l_x_fd"``) and documented
``headline_attribute`` as always a string, even though R2 replaced
those with ``"DID_1"`` / ``"DID_1_x"`` / ``"DID_1_fd"`` /
``"DID_1_x_fd"`` / ``"delta"`` / ``"delta_x"`` /
``"no_scalar_headline"`` and introduced the
``headline_attribute=None`` no-scalar case. Consumers wiring
dispatch logic off the docs would have pointed at tags the helper
no longer emits. Rewrote the ``aggregation`` enum in REPORTING.md
as a full per-estimator dispatch list, and updated the
``headline_attribute`` description to name the ``None`` case
explicitly. ``business_report.rst`` summary replaced ``DID_l``
with ``DID_1`` / cost-benefit delta and added a pointer to the
no-scalar case.
P3 (tests): added ``test_dcdh_trends_linear_with_l_max_geq_2_fit_real``
— a real-fit regression that exercises the
``ChaisemartinDHaultfoeuille(..., L_max=2, trends_linear=True)``
path end-to-end. Asserts (a) ``fit.overall_att`` is NaN by design
(matching ``chaisemartin_dhaultfoeuille.py:2828-2834``), (b)
``linear_trends_effects`` is populated, (c) the target-parameter
block emits ``aggregation="no_scalar_headline"`` and
``headline_attribute is None``, (d) the definition references
``linear_trends_effects``. Previously this branch was only
stub-tested; now the reporting-layer integration is pinned by a
live dCDH fit.
333 BR/DR tests pass. Black and ruff clean.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 9f6b4d1 commit 450c592
3 files changed
Lines changed: 79 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
58 | 64 | | |
59 | 65 | | |
60 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
96 | 111 | | |
97 | 112 | | |
98 | | - | |
99 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
100 | 120 | | |
101 | 121 | | |
102 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
588 | 588 | | |
589 | 589 | | |
590 | 590 | | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
0 commit comments