Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

dsep

Test d-separation


Description

Check whether two nodes are d-separated.

Usage

dsep(bn, x, y, z)

Arguments

bn

an object of class bn.

x,y

a character string, the label of a node.

z

an optional vector of character strings, the label of the (candidate) d-separating nodes. It defaults to the empty set.

Value

dsep() returns TRUE if x and y are d-separated by z, and FALSE otherwise.

Author(s)

Marco Scutari

References

Koller D, Friedman N (2009). Probabilistic Graphical Models: Principles and Techniques. MIT Press.

Examples

bn = model2network("[A][C|A][B|C]")
dsep(bn, "A", "B", "C")
bn = model2network("[A][C][B|A:C]")
dsep(bn, "A", "B", "C")

bnlearn

Bayesian Network Structure Learning, Parameter Learning and Inference

v4.6.1
GPL (>= 2)
Authors
Marco Scutari [aut, cre], Robert Ness [ctb]
Initial release
2020-09-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.