View source: R/D2_AbsorbEvidence.R
AbsorbEvidence | R Documentation |
Absorb evidence into the model
AbsorbEvidence(tree, vars, values)
tree |
a |
vars |
a |
values |
a |
Absorb multiple types and pieces of evidences into a ClusterTree
object. The discrete compartment of the ClusterTree
will be automatically
propagated after evidence absorption, so that the object will be ready for making
queries and absorbing additional evidence.
ClusterTree
object with the evidence absorbed
Han Yu
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.p <- Initializer(dag=liver$dag, data=liver$data, node.class=liver$node.class, propagate = TRUE) tree.post <- AbsorbEvidence(tree.init.p, c("Nr1i3", "chr1_42.65"), list(1,"1"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.