CaCu PIM: the estimand says what the number is, not how its interval is computed

The interval's method (delta method on the log scale) is the version's subgroup report's; the screens that show the
estimand don't need it.
This commit is contained in:
2026-11-22 09:34:35 -06:00
parent 7928b478f9
commit 835817930d
5 changed files with 3 additions and 6 deletions
+1 -1
View File
@@ -271,7 +271,7 @@ def test_the_scenario_says_what_its_number_is():
"""Pins down: `[estimand]` reaches the scenario with what the screens show next to each risk. Fails if the key is
renamed or `Scenario.from_toml` stops reading it."""
assert SCENARIO.estimand["quantity"] == "Riesgo acumulado" and SCENARIO.estimand["horizons_unit"] == "años"
assert {"description", "outcome", "index_date", "interval"} <= set(SCENARIO.estimand)
assert {"description", "outcome", "index_date"} <= set(SCENARIO.estimand) and "interval" not in SCENARIO.estimand
def test_each_stratum_gets_its_own_mixture_and_an_unseen_one_gets_no_risk(cohort_frame):