aucDisc: Calculate Area Under a (ROC/PR) Curve

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/aucDisc.R

Description

aucDisc calculates the Area under a Curve giving the coordinate of each point.

Usage

1
  aucDisc(fpr, tpr)

Arguments

fpr

the false positive rate (precision/abscissa) that forms the curve.

tpr

the true positive rate (recall/ordinate) that forms the curve.

Details

It uses the 2nd order Taylor series in order to calculate the area under the curve.

Value

The aucDisc returns a real number representing the Area Under the given Curve.

Author(s)

Luciano Garofano lucianogarofano88@gmail.com, Stefano Maria Pagnotta, Michele Ceccarelli

References

Swets, J.A. (1996). Signal detection theory and ROC analysis in psychology and diagnostics: collected papers. Lawrence Erlbaum Associates, Mahwah, NJ.

See Also

performanceIndex

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
simData <- simulatedData(p = 50, n = 100, mu = 100, sigma = 0.25,
                        ppower = 0.73, noise = FALSE)
counts <- simData$counts
adjMat <- simData$adjMat

miML <- parMIEstimate(counts, method = "ML", unit = "nat", nchips = 2)
valML <- performanceIndex(miML, adjMat)

AUROC <- aucDisc(valML[, "FPR"], valML[, "Recall"])
AUPR <- aucDisc(valML[, "Recall"], valML[, "Precision"])

synRNASeqNet documentation built on May 2, 2019, 6:01 a.m.