validate_abnDag {abn}R Documentation

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, ...)

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().

Value

Either TRUE/FALSE or DAG as matrix.


[Package abn version 3.1.1 Index]