random_sg: Generate a random fitted signalgraph object

Description Usage Arguments Value

Description

Uses the sim_DAG in the lucy https://github.com/robertness/lucy package. The vertices that must have data are the roots and the leaves, (everything in between can be hidden), so data is simulated for only those nodes.

Usage

1
2
random_sg(p, n, max.iter = 1, input_g = NULL, method = "ordered",
  no_fixed = FALSE, ...)

Arguments

p

the number of desired nodes

n

the number of desired rows in the data

input_g

an igraph object. If supplied then the graph is simulated from a power law fit on this input graph.

method

the fitting method for simulating a directed acyclic graph. Ignored if input_g is supplied.

no_fixed

boolean if TRUE then all vertices are treated as random. Defaults to FALSE

...

additional arguments, including graph attributes

Value

a signalgraph object


robertness/signalgraph documentation built on May 27, 2019, 10:33 a.m.