roc: ROC analysis returning true and false positive rates along an...

Description Usage Arguments Value Author(s) References Examples

View source: R/ROC.R

Description

ROC analysis returning true and false positive rates along an ordered list

Usage

1
roc(ordered.results, true.positives)

Arguments

ordered.results

Items ordered from best to worst according to the test score.

true.positives

known true positives

Value

List: true positive rate (tpr) and false positive rate (fpr)

Author(s)

Contact: Leo Lahti microbiome-admin@googlegroups.com

References

To cite microbiome R package, see citation('microbiome')

Examples

1
2
3
data(peerj32)
  x <- unlist(peerj32$microbes[1,])
  res <- roc(names(x), sample(names(x), 10))

microbiome/microbiomeold documentation built on May 22, 2019, 9:57 p.m.