Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

assoc.exists

Check if association between two DAG nodes exists.


Description

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.

Usage

assoc.exists(dag, a, b)

Arguments

dag

The DAG to be dealt with.

a

First node.

b

Second node.

Value

A boolean indicating whether or not an association between first node and second node already exists.

Author(s)

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

Examples

dag1a<-dag.adjust(demo.dag1(), A=3);
assoc.exists(dag1a, 2, 4);
assoc.exists(dag1a, 2, 5);

dagR

R Functions for Directed Acyclic Graphs

v1.2.0
GPL-2
Authors
Lutz P Breitling
Initial release
2021-04-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.