Learn R Programming

synRNASeqNet (version 1.0)

performanceIndex: Evalutate Performance Indices

Description

A function that computes the peformance indices (i.e. "Recall", "FPR", "Precision", "Accuracy", "Fscore") between a predicted adjacency matrix (testNet) and a true one (gsNet) for each mutual information threshold.

Usage

performanceIndex(testNet, gsNet)

Arguments

testNet
a predicted adjacency matrix to evaluate.
gsNet
the true adjacency matrix.

Value

The performanceIndex function returns a data.frame with the considered performance indices for each mutual information threshold.

References

Stehman, S.V. (1997). Selecting and interpreting measures of thematic classification accuracy. Remote Sensing of Environment 62 (1): 77-89.

See Also

simulatedData, mainNetFunction, performanceNET

Examples

Run this code
simData <- simulatedData(p = 10, n = 20, 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)

Run the code above in your browser using DataLab