# \donttest{
data(fitted_prclmm)
more.cores = FALSE
# IMPORTANT: set more.cores = TRUE to speed computations up!
if (!more.cores) n.cores = 2
if (more.cores) {
# identify number of available cores on your machine
n.cores = parallel::detectCores()
if (is.na(n.cores)) n.cores = 2
}
# compute the time-dependent AUC
perf = performance_prc(fitted_prclmm$step2, fitted_prclmm$step3,
metric = 'tdauc', times = c(3, 3.5, 4), n.cores = n.cores)
# use metric = 'brier' for the Brier score and metric = 'c' for the
# concordance index
# time-dependent AUC estimates:
ls(perf)
perf$tdAUC
# }
Run the code above in your browser using DataLab