roc.auc.matrix: ROC AUC calculation for a matrix of variables

Description Usage Arguments Details Value Author(s) References Examples

View source: R/ROC.R

Description

ROC AUC calculation for a matrix of variables

Usage

1
roc.auc.matrix(dat, true.positives)

Arguments

dat

Data matrix (variables x samples)

true.positives

known true positive samples

Details

The samples are ordered for each row (variable) from the highest to the lowest score, and ROC/AUC value is calculated based on this ordering.

Value

Vector of ROC AUC values for each variable

Author(s)

Contact: Leo Lahti microbiome-admin@googlegroups.com

References

See citation('microbiome')

Examples

1
2
3
data(peerj32)
  dat <- peerj32$microbes
  res <- roc.auc.matrix(dat, sample(colnames(dat)))

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