View source: R/dag.ancestors.R
dag.ancestors | R Documentation |
This identifies those nodes in a DAG that are ancestors of the nodes specified, i.e. acc. to the model depicted by the DAG they causally precede those nodes.
Internally called by dag.adjustment
in the context of finding associations introduced by adjustment.
dag.ancestors(dag, A)
dag |
The DAG to be evaluated. |
A |
A vector of nodes for which ancestors are to be identified. |
A vector indicating which nodes are ancestors of those in A. Note that A actually is included at the beginning of the vector.
Lutz P Breitling <l.breitling@posteo.de>
dag.adjust
, dag.adjustment
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.