sigs2mat {PCGII}R Documentation

Utility function for PCGII inference results

Description

A utility function takes PCGII inference results as input and generates an adjacency matrix corresponding to the significant partial correlations

Usage

sigs2mat(sigs, P)

Arguments

sigs

A dataframe of locations (row, col) of selected edges.

P

A number, the number of nodes in the network.

Value

A matrix of size P*(P-1)/2, with 0, 1.

Examples

edges=cbind.data.frame(row=c(1,2,3,1,6,2,1,6,1,4),
                       col=c(2,1,1,3,2,6,6,1,4,1)) # five edges
sigs2mat(sigs = edges, P = 6)

[Package PCGII version 1.1.2 Index]