Ancestral Relations
Retrieve the names of all variables in a given graph that are in the specified
ancestral relationship to the input variable v
.
descendants(x, v) ancestors(x, v) children(x, v) parents(x, v) neighbours(x, v) spouses(x, v) adjacentNodes(x, v) markovBlanket(x, v)
x |
the input graph, of any type. |
v |
name(s) of variable(s).
By convention, |
g <- dagitty("graph{ a <-> x -> b ; c -- x <- d }") descendants(g,"x") parents(g,"x") spouses(g,"x")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.