Description Usage Arguments Details Value Author(s) References See Also Examples
aucDisc calculates the Area under a Curve giving the coordinate of each point.
1 | aucDisc(fpr, tpr)
|
fpr |
the false positive rate (precision/abscissa) that forms the curve. |
tpr |
the true positive rate (recall/ordinate) that forms the curve. |
It uses the 2nd order Taylor series in order to calculate the area under the curve.
The aucDisc
returns a real number representing the Area Under the given Curve.
Luciano Garofano lucianogarofano88@gmail.com, Stefano Maria Pagnotta, Michele Ceccarelli
Swets, J.A. (1996). Signal detection theory and ROC analysis in psychology and diagnostics: collected papers. Lawrence Erlbaum Associates, Mahwah, NJ.
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"])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.