powered by
This function generates random observations from a DAG graph
rmvDAG_obs(n, amat, Sig = NULL)
The sample size
The adjacency matrix of a DAG
The error variance of each node
Gaussian data with the given sample size
# NOT RUN { amat=matrix(c(0,1,0,0),2,2) rmvDAG_obs(50,amat) # }
Run the code above in your browser using DataLab