Time-dependent ROC curves could be plotted based on different survival time points at which an event has occurred. To this end, censored patients should be excluded so that the plot could be based on the time points at which an event has occurred.
excl.samples(test.ind, surv, censor)
Vector of testing set index.
Vector of survival time.
Vector of censoring status. In the censoring status vector, 1 = event occurred, 0 = censored.
Index of survival time points of the patients in the testing set who have experienced an event.
This function is not called by the user directly.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.