Learn R Programming

synRNASeqNet (version 1.0)

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

Description

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

Usage

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.

Value

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

Details

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

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

Run this code
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"])

Run the code above in your browser using DataLab