r - How to extract average ROC curve predictions using ROCR? -
the rocr library in r offer ability plot average roc curve (right rocr reference manual ): library(rocr) library(rocr) data(rocr.xval) # plot roc curves several cross-validation runs (dotted # in grey), overlaid vertical average curve , boxplots # showing vertical spread around average. data(rocr.xval) pred <- prediction(rocr.xval$predictions, rocr.xval$labels) perf <- performance(pred,"tpr","fpr") plot(perf,col="grey82",lty=3) plot(perf,lwd=3,avg="vertical",spread.estimate="boxplot",add=true) lovely. unfortunately, there's seemingly no ability obtain average roc curve object/dataframe/etc. further statistical testing (say, proc ). did research (albeit perhaps after fact), , found post: global variables in r i looked through rocr's code reveals following lines passing result plot: performance_plots.r , (starting @ line 451) ## compute average curve perf.avg <- perf.sampled perf.avg@x.values <-...