dag2chol: Create regression matrix matrix from DAG A DAG can be...

View source: R/graph_utilities.R

dag2cholR Documentation

Create regression matrix matrix from DAG A DAG can be represented as a triangular matrix of regression coefficients.

Description

Create regression matrix matrix from DAG A DAG can be represented as a triangular matrix of regression coefficients.

Usage

dag2chol(object)

Arguments

object

A graph, either a graphNEL or an igraph object.

Examples

g <- dag(~x2|x1 + x3|x1:x2 + x4|x3)
dag2chol(g)

gRbase documentation built on Sept. 22, 2023, 5:12 p.m.