Propagate | R Documentation |
This function propagates the discrete compartment of a ClusterTree
object.
Propagate(tree, targets = NA)
tree |
an initialized |
targets |
the cluster involved in evidence propagation, usually set by default |
The discrete compartment must be propagted to get the joint distributions
of discrete variables in each discrete clusters. A ClusterTree
object must be propagated
before absorbing evidence and making queries.
a ClusterTree
object
Cowell, R. G. (2005). Local propagation in conditional Gaussian Bayesian networks.
Journal of Machine Learning Research, 6(Sep), 1517-1550.
Lauritzen, S. L., & Spiegelhalter, D. J. (1988). Local computations with probabilities on
graphical structures and their application to expert systems. Journal of the Royal Statistical
Society. Series B (Methodological), 157-224.
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>.
data(liver) tree.init <- Initializer(dag=liver$dag, data=liver$data, node.class=liver$node.class, propagate = FALSE) tree.init@propagated tree.init.p <- Propagate(tree.init) tree.init.p@propagated
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.