ElimTreeInitialize {BayesNetBP} | R Documentation |
Initialize the elimination tree
Description
Initialize the elimination tree with the local models
Usage
ElimTreeInitialize(tree, dag, model, node.sets, node.class)
Arguments
tree |
a |
dag |
a |
model |
a |
node.sets |
a |
node.class |
a named |
Details
Initialize the elimination tree with the local models
Value
ClusterTree
object with the local models incorporated
Author(s)
Han Yu
References
Cowell, R. G. (2005). Local propagation in conditional Gaussian Bayesian networks.
Journal of Machine Learning Research, 6(Sep), 1517-1550.
Yu H, Moharil J, Blair RH (2020). BayesNetBP: An R Package for Probabilistic Reasoning in Bayesian
Networks. Journal of Statistical Software, 94(3), 1-31. <doi:10.18637/jss.v094.i03>.
See Also
The functions ClusterTreeCompile
and LocalModelCompile
provide necessary
objects to obtain ClusterTree
object by initializing the elimination tree through this function.
Examples
data(liver)
cst <- ClusterTreeCompile(dag=liver$dag, node.class=liver$node.class)
models <- LocalModelCompile(data=liver$data, dag=liver$dag, node.class=liver$node.class)
tree.init <- ElimTreeInitialize(tree=cst$tree.graph,
dag=cst$dag,
model=models,
node.sets=cst$cluster.sets,
node.class=cst$node.class)