powered by
create density plots of cases and controls and ROC plot
makeROCplot(cases, controls, label = "", xlab = "P(X==1)", xlim = NULL, abline = NULL)
a factor of predicted classes
a factor of classes to be used as the true results
image main label
label for x axis
x axis extend
draws vertical abline to indicate best threshold
# NOT RUN { library(pROC) cases <- rnorm(100,-1,1.5) controls <- rnorm(300,1,1.5) makeROCplot(cases,controls) # }
Run the code above in your browser using DataLab