Fix time-dependent interventions avoided calculation (#412) - #413
Conversation
Derive time-dependent interventions avoided directly from model and treat-all net benefit using population event risk from cutoff-zero. Fixes #412 Co-authored-by: uriahf <11351434+uriahf@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
|
Derive time-dependent interventions avoided directly from model and treat-all net benefit using population event risk from cutoff-zero. Fixes #412 Co-authored-by: uriahf <11351434+uriahf@users.noreply.github.com>
|
PR #413 has the right high-level direction, but please do not merge yet. There is one statistical blocker plus the current lint failure. The important statistical issue is that
That is not always a pooled population KM/AJ estimate.
Predictions exactly equal to 0 are valid. They remain in the predicted-negative subgroup ( Please reproduce this explicitly using Fixture B:
The true pooled population KM risk at t=10 must remain The current cutoff-zero reconstruction should instead expose a different value (approximately Please fix the architecture so Prefer reusing an existing true population-level AJ/KM calculation if one already exists. Do not introduce a second approximate reconstruction from threshold rows. Then add focused regression coverage proving:
Also correct the existing Finally remove the unused Run:
Push to the existing PR #413 branch and inspect exact-head CI. Stop before merge. Do not broaden scope beyond issue #412. |
Implements exact dcurves compatibility for time-dependent interventions avoided by deriving model interventions avoided as an exact transformation of conventional net benefit versus treat-all net benefit using cutoff-zero population event risk.
Fixes #412
PR created automatically by Jules for task 3099309441451949724 started by @uriahf