generator_param: Generate simulation parameters from a graph adjacency matrix

View source: R/gener_data.R

generator_paramR Documentation

Generate simulation parameters from a graph adjacency matrix

Description

Generate simulation parameters from a graph adjacency matrix

Usage

generator_param(G, signed = FALSE, v = 0.01)

Arguments

G

adjacency matrix

signed

boolean: should the graph be composed of positive and negative partial correlations ?

v

parameter controlling the noise on the precision matrix

Value

a list containing

  • sigma: the covariance matrix

  • omega: the precision matrix

  • lambda: the constant that was needed to load the diagonal of omega and ensure its positive definiteness

Examples

G<-generator_graph(p=10,graph="tree")
generator_param(G=G)


Rmomal/EMtree documentation built on Dec. 14, 2024, 8:16 a.m.