# \donttest{
if (requireNamespace("randomForestRHF", quietly = TRUE)) {
## Calculate this expensive result once and retain it for reuse.
simulated <- randomForestRHF::hazard.simulation(1, n = 100, nrecords = 3)
tune_fit <- randomForestRHF::tune.iAUC.rhf(
"Surv(id, start, stop, event) ~ .",
simulated$dta,
ntree = 12L,
lower = 2L,
upper = 5L,
verbose = FALSE,
forest = FALSE
)
tuning <- gg_tune_rhf(tune_fit)
plot(tuning)
}
# }
Run the code above in your browser using DataLab