back_to_matrix: Convert a 3-column result of edge difference back to matrix

View source: R/back_to_matrix.R

back_to_matrixR Documentation

Convert a 3-column result of edge difference back to matrix

Description

Convert a 3-column result of edge difference back to matrix

Usage

back_to_matrix(x)

Arguments

x

a data frame named einv.pals from NCT result object

Value

a p value matrix with the same dimension with correlation matrix

Examples

# uncomment to run
# EBICglassoNet(mtcars) -> net1
# EBICglassoNet(mtcars^3) -> net2
# suppressMessages(NetworkComparisonTest::NCT(net1,net2,it=500, binary.data=FALSE,test.edges=TRUE, edges='all',progressbar = FALSE)) -> NCT
# back_to_matrix(NCT$einv.pvals)


LeiGuo0812/quickNet documentation built on May 1, 2024, 10:42 p.m.