bn.fit class {bnlearn}R Documentation

The bn.fit class structure

Description

The structure of an object of S3 class bn.fit.

Details

An object of class bn.fit is a list whose elements correspond to the nodes of the Bayesian network. If the latter is discrete (i.e. the nodes are multinomial random variables), the object also has class bn.fit.dnet; each node has class bn.fit.dnode and contains the following elements:

Nodes encoding ordinal variables (i.e. ordered factors) have class bn.fit.onode and contain the same elements as bn.fit.dnode nodes. Networks containing only ordinal nodes also have class bn.fit.onet, while those containing both ordinal and multinomial nodes also have class bn.fit.donet.

If on the other hand the network is continuous (i.e. the nodes are Gaussian random variables), the object also has class bn.fit.gnet; each node has class bn.fit.gnode and contains the following elements:

Hybrid (i.e. conditional linear Gaussian) networks also have class bn.fit.gnet. Gaussian nodes have class bn.fit.gnode, discrete nodes have class bn.fit.dnode and conditional Gaussian nodes have class bn.fit.cgnode. Each node contains the following elements:

Furthermore, Bayesian network classifiers store the label of the training node in an additional attribute named training.

Author(s)

Marco Scutari


[Package bnlearn version 4.9.3 Index]