-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix estimation of censoring distribution for tied times with events
Adds a reverse argument to kaplan_meier_estimator When estimating the censoring distribution, we now consider events to occur before censoring. For tied time points with an event, those with an event are not considered at risk anymore and subtracted from the demoniator of the Kaplan-Meier estimator. The change affects all functions relying on inverse probability of censoring weights, namely: - sksurv.nonparametric.CensoringDistributionEstimator - sksurv.nonparametric.ipc_weights - sksurv.linear_model.IPCRidge - sksurv.metrics.cumulative_dynamic_auc - sksurv.metrics.concordance_index_ipcw
- Loading branch information
Showing
5 changed files
with
62 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters