When using classification techniques, we can rely on the technique to classify cases automatically. Alternately, we can rely on the technique to only generate the probabilities of cases belonging to various classes and then determine the cutoff probabilities ourselves. A receiver operating characteristic (ROC) chart helps with the latter approach by giving a visual representation of the true and false positives at various cutoff levels. We will use the ROCR package to generate ROC charts.
Generating receiver operating characteristic charts
Getting ready
If you have not already installed the ROCR package, install it now. Load the data files for this chapter from the book's website and ensure that the rocr-example-1.csv...