escogcnerr: Compute the estiamtion error of gene co-expression networks

Description Usage Arguments Value Examples

Description

Compute the error between the true and estimated gene co-expression network using different error measure

Usage

1
gcn_error(gcnlist, method = c("MSE"))

Arguments

gcnlist

a list of gene coexpression networks of the same set of genes, where the first is taken as the truth, and the rest are all estimations.

method

a vector of error measure names, possible choices are mean square error "MSE", Spectral norm "Spectral", infinite norm "Inf", l1 norm, "L1"

Value

a matrix of error levels, where each row indicates the given different estimation of gcn, and each column indicates different error measure.

Examples

1
2
3
4
data1 = matrix(rnorm(100),20,5)
data2 = matrix(rnorm(100),20,5)
gcnlist = list(cor(data1),cor(data2))
gcnerr = gcn_error(gcnlist)

JINJINT/ESCO documentation built on May 13, 2021, 7:25 p.m.