Learn R Programming

abn (version 3.1.1)

validate_abnDag: Check for valid DAG of class abnDag

Description

Beside some basic checks, this function also checks for square matrix with no undirected cycles (trivial cycles) and for no undirected cycles.

Usage

validate_abnDag(dag, data.df = NULL, returnDag = TRUE, ...)

Value

Either TRUE/FALSE or DAG as matrix.

Arguments

dag

dag is either a formula, a matrix or an object of class 'abnDag'

data.df

data frame

returnDag

if TRUE (default) returns DAG as matrix.

...

additional arguments.

Details

Similar to check.valid.dag().