Learn R Programming

MoTBFs (version 2.0)

getDAG: Retrieve DAG from BN

Description

Get the Directed acyclic graph (DAG) from a Bayesian network (BN)

Usage

getDAG(bn)

Value

An object of class bn (same class as in bnlearn package).

Arguments

bn

An object of class motbf_fit or bn.fit (from bnlearn package).