Learn R Programming

intdag (version 1.0.1)

rmvDAG_obs: A random graph data generation function

Description

This function generates random observations from a DAG graph

Usage

rmvDAG_obs(n, amat, Sig = NULL)

Arguments

n

The sample size

amat

The adjacency matrix of a DAG

Sig

The error variance of each node

Value

Gaussian data with the given sample size

Examples

Run this code
# NOT RUN {
amat=matrix(c(0,1,0,0),2,2)
rmvDAG_obs(50,amat)
# }

Run the code above in your browser using DataLab