compareROC {gprege} | R Documentation |
This rocStats wrapper superimposes ROC curves on a plot to analyse the output performance of a method-A, and optionally compare it with that of a method-B, based on some ground thruth labels.
compareROC(output, groundTruthLabels, compareToRanking)
output |
(vector) The output of ranking scores returned by method-A for each data-point. |
groundTruthLabels |
(vector) A binary vector that contains the ground truth (e.g. which genes are members of the top-100 ground truth list). |
compareToRanking |
A matrix where each column is the output vector of ranking scores returned by another competing method. |
area |
A scalar. The area under the ROC curve of method-A. |
data(FragmentDellaGattaData) ## Load demo data. compareROC(output= rnorm(length(DGatta_labels_byTSNI))>0, groundTruthLabels=DGatta_labels_byTSNI)