timeroc_auc {parTimeROC}R Documentation

timeroc_auc

Description

Function to compute the area under the ROC curve

Usage

timeroc_auc(obj)

Arguments

obj

A predictTROC object.

Value

A dataframe of the area under the ROC curve

Examples

test <- timeroc_obj('normal-weibull-copula', copula = 'clayton90')
print(test)

set.seed(23456)
rr <- rtimeroc(obj = test, censor.rate = 0.1, n=500,
               params.t = c(shape=1, scale=5),
               params.x = c(mean=5, sd=1),
               params.copula=-2)

cc <- timeroc_fit(x=rr$x, t=rr$t, event=rr$event, obj = test)

jj <- timeroc_predict(cc, t = quantile(rr$t, probs = c(0.25,0.5,0.75)))

timeroc_auc(jj)

[Package parTimeROC version 0.1.0 Index]