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