Adjust an existing DAG for covariables.
The function looks for associations introduced by adjusting for the covariables specified, then looks for biasing paths, and finally evaluates these paths.
dag.adjust(dag, A = c())
dag |
The DAG to be adjusted (or evaluated). |
A |
Vector indicating the adjustment set. The numbering is according to the nodes vector of the DAG, which is shown e.g. in the legend of a DAG drawn by |
If the adjustment set is empty, the function only looks for biasing paths and evalutes these.
A DAG with the adjustment set A, and possibly with additional
associations introduced by adjustment, biasing paths found,
and the status of these.
If adjustment set is not empty, searchType
and searchRes
are set to NULL
.
CAVE: Do not apply this to an already adjusted DAG, since
this might not be handled appropriately (see documentation
of dag.adjustment
called by dag.adjust
).
Lutz P Breitling <l.breitling@posteo.de>
demo.dag1(); dag.adjust(demo.dag1()); dag.adjust(demo.dag1(), A=3);
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.