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.
Usage
excl.samples(test.ind, surv, censor)
Arguments
test.ind
Vector of testing set index.
surv
Vector of survival time.
censor
Vector of censoring status. In the censoring status vector, 1 = event occurred, 0 = censored.
Value
Index of survival time points of the patients in the testing set who have experienced an event.