The structure of an object of S3 class bn.fit
.
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) each node has class
bn.fit.dnode
and contains the following elements:
node
: the label of the node.
parents
: the labels of the parents of the node.
children
: the labels of the children of the node.
prob
: the conditional probability table of the node
given its parents.
Nodes encoding ordinal variables (i.e. ordered factors) have class
bn.fit.onode
and contain the same elements as bn.fit.dnode
nodes.
If on the other hand the network is continuous (i.e. the nodes
are Gaussian random variables) each node has class bn.fit.gnode
and contains the following elements:
node
: the label of the node.
parents
: the labels of the parents of the node.
children
: the labels of the children of the node.
coefficients
: the linear regression coefficients of the
parents against the node.
residuals
: the residuals of the linear regression,
that is response minus fitted values.
fitted.values
: the fitted mean values of the linear
regression.
sd
: the standard deviation of the residuals (i.e. the
standard error).
Furthermore, Bayesian network classifiers store the label of the training
node in an additional attribute named training
.
Marco Scutari
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.