Description Usage Arguments Examples

Retrieve the names of all variables in a given graph that are in the specified
ancestral relationship to the input variable `v`

.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ```
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, |

1 2 3 4 | ```
g <- dagitty("graph{ a <-> x -> b ; c -- x <- d }")
descendants(g,"x")
parents(g,"x")
spouses(g,"x")
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.