assoc.exists: Check if association between two DAG nodes exists.

View source: R/assoc.exists.R

assoc.existsR Documentation

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>


dagR documentation built on Oct. 9, 2022, 5:06 p.m.