e1f388c702
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.
70 lines
3.9 KiB
TOML
70 lines
3.9 KiB
TOML
domain = "cacu"
|
||
scenario = "cin2_pim_post_colposcopy"
|
||
cohort = "cacu/cohorte_total"
|
||
outcome = "cin2"
|
||
requirements = ["scikit-learn", "numpy", "pandas", "scipy", "cloudpickle"]
|
||
# The same dataflow as `cin2_pim`; only the cohort and the config change.
|
||
modules = ["models.cacu.cin2_pim.model", "models.cacu.cin2_pim.report", "models.steps.indexing"]
|
||
description = """
|
||
Prototipo: riesgo acumulado de CIN2+ desde la primera visita de vigilancia (co-test) después de una colposcopía sin CIN2+, en la visita y a \
|
||
1, 3 y 5 años (escenario 4 de ASCCP 2019; tabla 17 de KPNC). Mezcla prevalencia–incidencia con I-splines, una por grado \
|
||
de la referencia (bajo o alto), con el VPH y la citología (tres categorías de KPNC) de esa citología como covariables, \
|
||
como reproduce exactamente la tabla 17 (capítulo 25 de bayes-pim). CIN2+ porque la biopsia LIEAG no separa CIN2 de CIN3. Sin corrección del sesgo de verificación. PROVISIONAL: una colposcopía sin orden de biopsia (impresión normal) se toma \
|
||
sin CIN2+, lo que supone que la impresión colposcópica no omite ningún CIN2+."""
|
||
|
||
# What the model's number is, as the patient's screen and the governance pages show it.
|
||
[estimand]
|
||
quantity = "Probabilidad"
|
||
description = "Probabilidad de que la paciente tenga CIN2+ en la fecha índice o lo desarrolle antes de cada horizonte."
|
||
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"
|
||
covariates = "grado de la citología que la refirió a colposcopía (un ajuste por grado), VPH y citología de la visita índice en tres categorías de KPNC"
|
||
|
||
[config]
|
||
horizons_years = [0.0, 1.0, 2.0, 3.0, 4.0, 5.0]
|
||
# The level of each risk's interval (delta method), given with the estimate; none gives no interval.
|
||
risk_interval_level = 0.95
|
||
event_grades = ["LIEAG", "CIS", "CARCINOMA"]
|
||
train_fraction = 0.7
|
||
prevalent_window_months = 6
|
||
index_sample_days = 30
|
||
known_negative = { bethesda = ["NORMAL", "ASC-US"], vph = ["NEGATIVO"] }
|
||
incidence = { family = "ispline", knots = 3, order = 4 }
|
||
# Chapter 25 of bayes-pim: table 17 is reproduced exactly with one baseline per referral grade, the six HPV × cytology
|
||
# curves proportional within it; one baseline per HPV result is not (residual 4e-3).
|
||
strata = ["referral_grade"]
|
||
incidence_features = ["cytology", "hpv_positive"]
|
||
|
||
# KPNC groups the post-colposcopy cytology in three: NILM, ASC-US/LSIL and high grade (ASC-H, AGC, HSIL+).
|
||
# The scenario's index and rules over the total cohort (models/steps/indexing.py), the same as dbt's
|
||
# cacu/cohorte_post_colposcopia_visita_1 (Cheung et al. 2020): the first surveillance visit with a cotest after the
|
||
# first colposcopy's result, before any later colposcopy. PROVISIONAL: a colposcopy without a biopsy order is below
|
||
# CIN2. The recruitment window is the source cohort's (the surveillance cohort's).
|
||
[config.index]
|
||
kind = "post_colposcopia"
|
||
visita = 1
|
||
event_grades = ["LIEAG", "CIS", "CARCINOMA"]
|
||
referral_lookback_days = 365
|
||
hysterectomy_cie = ["Z907"]
|
||
# PROVISIONAL (sin_definir): the data are left-truncated, so rules on earlier events read only what was recorded;
|
||
# 0 keeps everyone. Raise it once the population starts with enough history (S-CPS-20).
|
||
observacion_previa_minima_dias = 0
|
||
|
||
[config.cytology]
|
||
NILM = ["NORMAL"]
|
||
"ASC-US/LSIL" = ["ASC-US", "LIEBG"]
|
||
"High Grade" = ["ASC-H", "AGC", "LIEAG", "CIS", "ADENOCARCINOMA"]
|
||
|
||
# The referral before the colposcopy (Egemen et al. 2020, doi:10.1097/LGT.0000000000000529): low grade is ASC-US,
|
||
# LSIL or HPV-positive NILM; high grade is ASC-H, AGC or HSIL+. The results in `lookback_days` up to the first
|
||
# colposcopy, as the cohort's `no_referral_result` rule reads them; a member without one gets none.
|
||
[config.history]
|
||
feature = "referral_grade"
|
||
event = "colposcopia"
|
||
lookback_days = 365
|
||
levels = ["low", "high"]
|
||
low = ["ASC-US/LSIL"]
|
||
low_if_hpv_positive = ["NILM"]
|
||
high = ["High Grade"]
|