Learn R Programming

netbenchmark (version 1.4.2)

rate: Inference Validation

Description

rate compares the infered network to the true underlying network for all the sorted predictions provided and appends the resulting confusion matrices to the returned object.

Usage

rate(PredEdgeList, GSEdgeList, ngenes, sym)

Arguments

PredEdgeList
The inferred network in the form of a EdgeList.
GSEdgeList
The true underlying in the form of a EdgeList.
ngenes
Integrer denoting the number of total genes in the network.
sym
Logical specifying if the evaluation is symmetric (default: TRUE) - see evaluate.

Value

  • A matrix of numerics with the contingency table for each link in PredEdgeList.

See Also

netbenchmark, evaluate, comp.metr

Examples

Run this code
# Data
    net <- matrix(0,10,10)
    net[sample(1:100,20)] <- 1
    # Simulated Inference
    inf <- net+matrix(rnorm(100,sd=0.5),10,10)
    table <- evaluate(inf,net)

Run the code above in your browser using DataLab