AbsorbEvidence {BayesNetBP} | R Documentation |
Absorb evidence into the model
Description
Absorb evidence into the model
Usage
AbsorbEvidence(tree, vars, values)
Arguments
tree |
a |
vars |
a |
values |
a |
Details
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.
Value
ClusterTree
object with the evidence absorbed
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.
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>.
Examples
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"))