RocPlot | R Documentation |
ROC Curves Plot
RocPlot(ModelObject, testdata, outcome, reflevel)
ModelObject |
An object obtained from TreeModels() or TreeModelsAllSteps() functions. |
testdata |
A testing dataset. |
outcome |
A character string with the name of the binary outcome variable. |
reflevel |
A character string with the quoted reference level of outcome. |
This function returns a plot with ROC curves for the selected tree-based models (i.e., decision tree, random forest, or gradient boosting).
colnames(training)[14] <- "perf" colnames(testing)[14] <- "perf" ensemblist <- TreeModels(traindata = training, methodlist = c("dt", "gbm","rf"),checkprogress = TRUE) RocPlot(ModelObject = ensemblist$ModelObject, testdata = testing, outcome = "perf", reflevel = "incorrect")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.