calc_roc.rfsrc(rf, dta, which.outcome = "all", oob = TRUE)
randomForestSRC::rfsrc
or randomForestSRC::predict
object
containing predicted responseThis is a helper function for the gg_roc
functions, and not intended
for use by the end user.
calc_auc
gg_roc
plot.gg_roc
##
## Taken from the gg_roc example
iris.obj <- rfsrc(Species ~ ., data = iris)
gg_dta <- calc_roc.rfsrc(iris.obj, iris.obj$yvar, which.outcome=1, oob=TRUE)
Run the code above in your browser using DataLab