Skip to content

Debug create_adjusted_data() for dcurves example #127

Closed

Description

@uriahf

The output for time-horizon 1.5 should be compatible with the output of the dcurves package:

So-called prevalence of 0.22 for the dcurves package and 165 real-positives / 585 real-negatives for rtichoke output.

Activity

  1. reopened this on Sep 21, 2025
  2. uriahf commented on Aug 20, 2026

    @uriahf
    OwnerAuthor

    Rechecked this against current main before changing implementation.

    The discrepancy is no longer reproducible. On the dcurves df_surv example at 1.5 years, current rtichoke matches dcurves for threshold-specific TP rate, FP rate, and net benefit at representative cutoffs (0, .01, .05, .10, .20, .50). The reported prevalence is ~0.22, consistent with 165 / 750 (and 585 estimated negatives). An exact-boundary regression also confirms the prediction >= threshold convention.

    The key subsequent change is that time-dependent performance now uses risk_set_scope=["pooled_by_cutoff"], so KM/AJ quantities are estimated on the whole predicted-positive/predicted-negative groups at each cutoff instead of being reconstructed from small probability bins.

    Regression coverage is in PR #327. No implementation change is warranted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions