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

find.paths

Find potentially biasing paths in a DAG.


Description

This identifies paths linking exposure and outcome in a DAG. Forward paths (including a directed arc emanating from the exposure) are not identified.

Usage

find.paths(dag)

Arguments

dag

A DAG for which paths should be found.

Value

A DAG with components pathsN (number of paths identified) and paths (matrix with each row describing one path by indicating the arcs forming the path; ends with NA as some other function recognize the end of the path that way) added.

Author(s)

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

References

Breitling LP (2010). dagR: a suite of R functions for directed acyclic graphs. Epidemiology 21(4):586-587.
Greenland S, Pearl J, Robins JM (1999). Causal diagrams for epidemiologic research. Epidemiology 10(1):37-48.

See Also

Examples

demo.dag1();
find.paths(demo.dag1());

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.