Learn R Programming

quantable (version 0.3.6)

determineCut: determine best Accuracy cuttoff

Description

determine best Accuracy cuttoff

Usage

determineCut(cases, controls, plot = FALSE, scanstep = 0.01)

Arguments

cases

a factor of predicted classes

controls

a factor of classes to be used as the true results

plot

create plot of threasholds versus Accuracy

scanstep

step size for threshold estimation

Examples

Run this code
# NOT RUN {
library(pROC)
cases <- rnorm(100,-1,1.1)
controls <- rnorm(500,1,1.1)
cut <- determineCut(cases,controls)
makeROCplot(cases,controls,abline=cut)

# }

Run the code above in your browser using DataLab