Build a model string from a Bayesian network and vice versa
Build a model string from a Bayesian network and vice versa.
1 2 3 4 5 6 7 8 9
an object of class
a character string describing the Bayesian network.
the labels of all the nodes in the graph; their order is the
node ordering used in the construction of the
a character string, the same as the
a boolean value. If
extra arguments from the generic method (currently ignored).
The strings returned by
modelstring have the same format as the ones
returned by the
modelstring function in package deal; network
structures may be easily exported to and imported from that package (via the
The format of the model strings is as follows. The local structure of each
node is enclosed in square brackets ("
"); the first string is the
label of that node. The parents of the node (if any) are listed after a
|") and separated by colons ("
:"). All nodes (including
isolated and root nodes) must be listed.
as.bn return an object of class
as.character.bn return a character string.
1 2 3 4 5 6 7
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.