validate_abnDag: Check for valid DAG of class 'abnDag'

View source: R/validation.R

validate_abnDagR 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.


abn documentation built on Nov. 3, 2023, 5:08 p.m.