dag.adjust: Adjust an existing DAG for covariables.
Description
The function looks for associations introduced by adjusting for
the covariables specified, then looks for biasing paths, and
finally evaluates these paths.
Usage
dag.adjust(dag, A = c())
Arguments
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 dag.draw. This numbering is different (+1) from the one used in dag.init, be
Value
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.
Details
If the adjustment set is empty, the function only looks for
biasing paths and evalutes these.