Commit 86c4a5a
Address thirty-eighth round of CI review findings on PR #318
P2 methodology (StaggeredTripleDiff fixed-control prose incomplete).
Round-37 moved StaggeredTripleDiff's fixed ``control_group="never_
treated"`` schema to ``n_never_enabled`` (REGISTRY.md line 1730
names the never-enabled cohort as the valid fixed comparison) and
cleared the composite ``n_control_units`` total from ``n_control``.
The renderers, however, only surface ``n_never_enabled`` inside the
``is_dynamic_control`` branch — so the fixed ``never_treated`` path
fell through to the generic ``Sample: N observations.`` sentence
and the full report omitted the fixed comparison cohort entirely.
Added dedicated fixed-never-enabled branches to both renderers:
* ``_render_summary`` emits ``Sample: N observations (N_t treated,
N_ne never-enabled).`` when the estimator is
``StaggeredTripleDiffResults``, the dynamic branch is not
active, and ``n_never_enabled > 0``;
* ``_render_full_report`` emits a dedicated bullet
``- Never-enabled units (fixed comparison cohort): N_ne`` under
the same condition.
P3 coverage. Round-37 regression only asserted absence of the
wrong ``500 control`` wording; it did not positively assert the
valid never-enabled comparison cohort appeared in rendered prose,
which is why the P2 above slipped through. Regressions extended:
* ``test_never_treated_mode_summary_renders_never_enabled_count``
asserts ``300 never-enabled`` appears in ``summary()`` AND the
generic fallback ``Sample: 800 observations.`` does not fire;
* new ``test_never_treated_mode_full_report_renders_never_enabled_count``
asserts the sample section of ``full_report()`` names
``never-enabled`` and the ``300`` count while omitting any
bare ``- Control: 500`` line.
278 BR / DR / practitioner tests pass.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 8838303 commit 86c4a5a
2 files changed
Lines changed: 63 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1931 | 1931 | | |
1932 | 1932 | | |
1933 | 1933 | | |
| 1934 | + | |
| 1935 | + | |
| 1936 | + | |
| 1937 | + | |
| 1938 | + | |
| 1939 | + | |
| 1940 | + | |
| 1941 | + | |
| 1942 | + | |
| 1943 | + | |
| 1944 | + | |
| 1945 | + | |
| 1946 | + | |
| 1947 | + | |
| 1948 | + | |
| 1949 | + | |
| 1950 | + | |
| 1951 | + | |
| 1952 | + | |
1934 | 1953 | | |
1935 | 1954 | | |
1936 | 1955 | | |
| |||
2106 | 2125 | | |
2107 | 2126 | | |
2108 | 2127 | | |
| 2128 | + | |
| 2129 | + | |
| 2130 | + | |
| 2131 | + | |
| 2132 | + | |
| 2133 | + | |
| 2134 | + | |
| 2135 | + | |
| 2136 | + | |
| 2137 | + | |
| 2138 | + | |
| 2139 | + | |
| 2140 | + | |
| 2141 | + | |
| 2142 | + | |
| 2143 | + | |
| 2144 | + | |
2109 | 2145 | | |
2110 | 2146 | | |
2111 | 2147 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1333 | 1333 | | |
1334 | 1334 | | |
1335 | 1335 | | |
1336 | | - | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
1337 | 1344 | | |
1338 | 1345 | | |
1339 | 1346 | | |
1340 | | - | |
1341 | | - | |
1342 | | - | |
1343 | | - | |
1344 | | - | |
1345 | | - | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
1346 | 1353 | | |
1347 | 1354 | | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
1348 | 1368 | | |
1349 | 1369 | | |
1350 | 1370 | | |
| |||
0 commit comments