rocStats: Make ROC curve data.

Description Usage Arguments Value Examples

View source: R/rocStats.R

Description

Computes the points on an ROC curve by varying a threshold on the sorted outputs of the method in question.

Usage

1
  rocStats(outputs, groundTruthLabels, decreasing = TRUE)

Arguments

outputs

A numeric vector with the outputs of the evaluated method (e.g. likelihoods from gprege).

groundTruthLabels

A binary vector than contains the ground truth (e.g. which genes belong in the top-100 ground truth list).

decreasing

Logical. TRUE sorts outputs by decreazing order.

Value

stats

A list of numeric variables with the necessary statistics to compute an ROC curve, a precision-recall curve, etc.

Examples

1
2
3
  ## see compareROC.R
  data(FragmentDellaGattaData) ## Load demo data.
  rocStats(gpregeOutput$rankingScores, DGatta_labels_byTSNItop100, decreasing=TRUE)

gprege documentation built on Nov. 8, 2020, 7:48 p.m.