rmvDAG_int: A random graph data generation function

Description Usage Arguments Value Examples

View source: R/rmvintDAG.R

Description

This function generates random observations from a DAG graph

Usage

1
rmvDAG_int(n, amat, bmat, Sig = NULL)

Arguments

n

The sample size

amat

The adjacency matrix of a DAG

bmat

The intervention matrix

Sig

The error variance of each node

Value

Gaussian data with the given sample size

Examples

1
2
3
amat <- matrix(c(0,1,0,0),2,2)
bmat <- matrix(c(1,1,0,1),2,2)
rmvDAG_int(50, amat, bmat)

intdag documentation built on Oct. 9, 2019, 9:05 a.m.

Related to rmvDAG_int in intdag...