graph2prec: Convert a symmetric graph (extension of R matrix class)

View source: R/community_graph.R

graph2precR Documentation

Convert a symmetric graph (extension of R matrix class)

Description

Has internal rules for converting various graph topologies into the associated adjancency and, therefore, precision matrix

Usage

graph2prec(
  Graph,
  posThetaLims = c(2, 3),
  negThetaLims = -posThetaLims,
  targetCondition = 100,
  epsBin = 0.01,
  numBinSearch = 100
)

Arguments

Graph

graph adjacency matrix

posThetaLims

length 2 vector of lower and upper bound of positive values

negThetaLims

length 2 vector of lower and upper bound of negative values

targetCondition

sets the condition of the precision matrix by modulating the magnitude of the diagonal

epsBin

the convergence tolerance of the condition number binary search

numBinSearch

maximum number of iterations


zdk123/SpiecEasi documentation built on Oct. 20, 2023, 6:49 a.m.