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:
@@ -20,7 +20,6 @@ description = "Probabilidad de que la paciente tenga CIN2+ en la fecha índice o
|
||||
outcome = "CIN2+: biopsia LIEAG, CIS o carcinoma"
|
||||
index_date = "la última citología con resultado de citología y de VPH, en pacientes sin colposcopía; cada citología nueva es una nueva fecha índice. Sin la historia de visitas previas (aproximación hasta reproducir la tabla 4 de KPNC)"
|
||||
horizons_unit = "años"
|
||||
interval = "IC 95 % por método delta (escala logarítmica), de la incertidumbre de los parámetros del modelo"
|
||||
|
||||
[config]
|
||||
horizons_years = [0.0, 1.0, 3.0, 5.0]
|
||||
|
||||
@@ -19,7 +19,6 @@ description = "Probabilidad de que la paciente tenga CIN2+ en la fecha índice o
|
||||
outcome = "CIN2+: biopsia LIEAG, CIS o carcinoma"
|
||||
index_date = "la primera visita de vigilancia (co-test) después de una colposcopía sin CIN2+"
|
||||
horizons_unit = "años"
|
||||
interval = "IC 95 % por método delta (escala logarítmica), de la incertidumbre de los parámetros del modelo"
|
||||
|
||||
[config]
|
||||
horizons_years = [0.0, 1.0, 3.0, 5.0]
|
||||
|
||||
@@ -19,7 +19,6 @@ description = "Probabilidad de que la paciente tenga CIN2+ en la fecha índice o
|
||||
outcome = "CIN2+: biopsia LIEAG, CIS o carcinoma"
|
||||
index_date = "la primera citología después del tratamiento"
|
||||
horizons_unit = "años"
|
||||
interval = "IC 95 % por método delta (escala logarítmica), de la incertidumbre de los parámetros del modelo"
|
||||
|
||||
[config]
|
||||
horizons_years = [0.0, 1.0, 3.0, 5.0]
|
||||
|
||||
@@ -47,8 +47,8 @@ class Scenario:
|
||||
config: dict
|
||||
folder: Path
|
||||
requirements: tuple[str, ...] = ()
|
||||
# What the model's number is (`[estimand]`): `quantity`, `description`, `outcome`, `index_date`, `horizons_unit`,
|
||||
# `interval`; what a screen shows next to each risk.
|
||||
# What the model's number is (`[estimand]`): `quantity`, `description`, `outcome`, `index_date`, `horizons_unit`;
|
||||
# what a screen shows next to each risk. How its interval is computed is the version's report's, not the screen's.
|
||||
estimand: dict = field(default_factory=dict)
|
||||
|
||||
@classmethod
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user