| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/zzz.R |
| 3 |
\docType{data} |
| 4 |
\name{ROCR.xval} |
| 5 |
\alias{ROCR.xval} |
| 6 |
\title{Data set: Artificial cross-validation data for use with ROCR} |
| 7 |
\format{ |
| 8 |
A two element list. The first element, \code{ROCR.xval$predictions}, is |
| 9 |
itself a 10 element list. Each of these 10 elements is a vector of numerical |
| 10 |
predictions for each cross-validation run. Likewise, the second list entry, |
| 11 |
\code{ROCR.xval$labels} is a 10 element list in which each element is a |
| 12 |
vector of true class labels corresponding to the predictions. |
| 13 |
} |
| 14 |
\usage{ |
| 15 |
data(ROCR.xval) |
| 16 |
} |
| 17 |
\description{ |
| 18 |
A mock data set containing 10 sets of predictions and corresponding labels as |
| 19 |
would be obtained from 10-fold cross-validation. |
| 20 |
} |
| 21 |
\examples{ |
| 22 |
# plot ROC curves for several cross-validation runs (dotted |
| 23 |
# in grey), overlaid by the vertical average curve and boxplots |
| 24 |
# showing the vertical spread around the average. |
| 25 |
library(ROCR) |
| 26 |
data(ROCR.xval) |
| 27 |
pred <- prediction(ROCR.xval$predictions, ROCR.xval$labels) |
| 28 |
pred |
| 29 |
perf <- performance(pred,"tpr","fpr") |
| 30 |
perf |
| 31 |
plot(perf,col="grey82",lty=3) |
| 32 |
plot(perf,lwd=3,avg="vertical",spread.estimate="boxplot",add=TRUE) |
| 33 |
} |
| 34 |
\keyword{datasets} |