View source: R/C1_ElimTreeInitialize.R
ElimTreeInitialize | R Documentation |
Initialize the elimination tree with the local models
ElimTreeInitialize(tree, dag, model, node.sets, node.class)
tree |
a |
dag |
a |
model |
a |
node.sets |
a |
node.class |
a named |
Initialize the elimination tree with the local models
ClusterTree
object with the local models incorporated
Han Yu
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>.
The functions ClusterTreeCompile
and LocalModelCompile
provide necessary
objects to obtain ClusterTree
object by initializing the elimination tree through this function.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.