Learn R Programming

dagR (version 1.1.1)

summary_dagRdag: Summarize a DAG.

Description

Generic function summary code for class dagRdag, which is used by package dagR from version 1.1.1 on. At present, it actually is NOT coded as a generic function!

Usage

summary_dagRdag(dag)

Arguments

dag
An object of class dagRdag.

Details

Summarizes according to what functions have been applied to the DAG. It does not itself call dag.search and the like. Exception: is calls is.acyclic (with maxSecs=5).

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 reserach. Epidemiology 10(1):37-48. Kn"uppel S, Stang A (2010). DAG Program: identifying minimal sufficient adjustment sets. Epidemiology 21(1):159.

Examples

Run this code
d3<-demo.dag3();
d3s<-dag.search(d3);
d3a<-dag.adjust(d3, 2);
d3as<-dag.search(d3a);
summary_dagRdag(d3);
summary_dagRdag(d3s);
summary_dagRdag(d3a);
summary_dagRdag(d3as);

Run the code above in your browser using DataLab