Check if association between two DAG nodes exists.
Checks if an association between two DAG nodes already exists, i.e.
does not need to be introduced when adjusting for a shared child etc.
Internally called by dag.adjustment
.
assoc.exists(dag, a, b)
dag |
The DAG to be dealt with. |
a |
First node. |
b |
Second node. |
A boolean indicating whether or not an association between first node and second node already exists.
Lutz P Breitling <l.breitling@posteo.de>
dag1a<-dag.adjust(demo.dag1(), A=3); assoc.exists(dag1a, 2, 4); assoc.exists(dag1a, 2, 5);
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.