CaCu models: survival interval, yearly PIM horizons, registry listing of production scenarios #14

Merged
edgar merged 6 commits from integration/cacu-indicadores into dev 2026-11-22 23:24:57 -06:00

6 Commits

Author SHA1 Message Date
edgar ccaa6fca12 Registry: list a domain's scenarios with a version in production 2026-11-22 20:34:38 -06:00
edgar e1f388c702 Read the CaCu PIM curves at every year from 0 to 5
The horizons are evaluation points of the fitted I-spline curve, so the fit is unchanged; each batch gains the 2- and 4-year rows.
2026-11-22 20:26:47 -06:00
edgar 55d675c8a8 CaCu survival: each risk comes with its combination's bootstrap interval
The covariates are categorical, so every member of a combination gets the same mortality. Training keeps, per
combination of its members, the percentiles of the mortality of `risk_interval_replicas` refits on bootstrap resamples
(`risk_interval_level`, 0.95), and estimating writes it as each risk's interval. A combination training never saw has
none.
2026-11-22 20:10:40 -06:00
edgar c676dde0d0 CaCu survival: a case is a carcinoma, invasive or in situ
The scenario's diagnosis is the first biopsy reported as CIS or invasive carcinoma (`event_grades`), so in situ cases
are followed too and a CIS before an invasive carcinoma is the index date.
2026-11-22 19:16:05 -06:00
edgar 34b26d8c85 CaCu survival: an estimand that shows the probability of surviving
The model gives the probability of dying (`muerte`, like every batch the probability of its outcome); `complement =
"supervivencia"` tells the screens to show its complement as the probability of surviving, from the first invasive
biopsy, with its covariates.
2026-11-22 15:04:03 -06:00
edgar f00dd31450 CaCu PIM estimands: a probability, its covariates, and the surveillance index in short
The quantity is "Probabilidad"; each scenario names the covariates it uses, which the patient's record writes under
the table; the surveillance and cancer scenarios name their index as the latest cytology with cytology and HPV
results.
2026-11-22 15:04:03 -06:00