CaCu survival: all-cause mortality at 1, 3 and 5 years and subgroup reports #10
Reference in New Issue
Block a user
Delete Branch "integration/cacu-indicadores"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Order
Merge before WebApi, WebApp and the ISSSTELEON pointers. Use a merge commit, not a squash, so the commit the pointers name stays reachable from
dev.Every CaCu PIM scenario (cin2_pim, post-colposcopy, post-treatment) and the survival scenario now keep, per combination of their covariates, the model against its empirical estimate, with the methods each used: - PIM (models/cacu/cin2_pim/report.py): Turnbull's interval-censored estimate (prevalent = mass at 0, free in (l, r], unknown baseline in [0, r]; ported from bayes-pim chapter 24) with a bootstrap band, against the mixture refitted on every coded member with a delta-method band over the likelihood (inverse numerical Hessian, numerical gradient of CR(t), log scale); E/O at each horizon with log(E/O) taken as normal. - Survival (models/cacu/survival/report.py): Kaplan-Meier with Greenwood's band against the SEER pipeline's own subgroup points and bootstrap interval (survival_curves.sv_sub_weights and sv_sub_points, called as they are). A version keeps the record as analisis/subgrupos.json and a self-contained Plotly page as reportes/subgrupos.html (TrainingRun.log_report; the saver publishes a dataflow's `reports`). The same drawing is a notebook in the code, models/cacu/{cin2_pim,survival}/notebooks/reporte_subgrupos.ipynb: chart names and computed results only, a `parameters` cell, `#| echo: false` cells. models.reports.templates lists those notebooks with the scenarios each serves and reads one by id, for the WebApi's /governance/notebook-templates. The Jupyter renderer now drops the code of `#| echo: false` cells, as Quarto does. plotly>=5.18 joins the `survival-curves` extra (installed by the WebApi) and the dev group. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HmQxVJVNR5FYkPAregGEQ7