compareROC {gprege} | R Documentation

## Make ROC plots.

### Description

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.

### Usage

      compareROC(output, groundTruthLabels, compareToRanking)

### Arguments

`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.

### Value

`area` | A scalar. The area under the ROC curve of method-A.

### See Also

`rocStats`

### Examples

      data(FragmentDellaGattaData) ## Load demo data.
      compareROC(output= rnorm(length(DGatta_labels_byTSNI))>0, groundTruthLabels=DGatta_labels_byTSNI)

[Package gprege version 1.34.0 Index]