plot_roc | R Documentation |
Plot IPCW ROC curve for a prediction
plot_roc(time, delta, marker, wts = NULL, tao, method)
time |
vector of (censored) event-times |
delta |
vector of event indicators at the corresponding value of the vector time. Censored observations must be denoted by the value 0. |
marker |
vector of the marker values for which we want to compute the time-dependent ROC curve. the function assumes that larger values of the marker are associated with higher risks of events |
wts |
IPC weights |
tao |
evaluation time point of interest |
method |
IPCW or discard |
a plot IPCW ROC curve
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.