50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

dagR (version 1.2.1)

dag.adjustment: Adjust a DAG for one or more variables.

Description

Identifies the associations introduced by adjustment for the variables specified, and returns the DAG with these associations added. Note that this is called internally by dag.adjust, which makes sure that biasing paths are looked for and evaluted afterwards. Thus, dag.adjustment should 1.) not be called directly, and 2.) not be called on an already adjusted DAG!

Usage

dag.adjustment(dag, A=NULL)

Value

A DAG with A as the adjustment set and the associations introduced by adjustment for A added to the DAG.

Arguments

dag

The DAG to be adjusted.

A

The adjustment set to be applied.

Author

Lutz P Breitling <l.breitling@posteo.de>

Details

The adjustment set A specified when calling dag.adjustment overrules the adjustment variables that are present in the DAG. To keep these in the adjustment set, one has to add them to A.

See Also

dag.adjust, find.paths, eval.paths