powered by
Create regression matrix matrix from DAG A DAG can be represented as a triangular matrix of regression coefficients.
dag2chol(object)
A graph, either a graphNEL or an igraph object.
g <- dag(~x2|x1 + x3|x1:x2 + x4|x3) gi <- as(g, "igraph") dag2chol(g) dag2chol(gi)
Run the code above in your browser using DataLab