An illustrative causal diagram for maternal smoking and orofacial clefts
Source:R/data.R
cleft_dag.RdA small directed acyclic graph for a study of maternal smoking and
orofacial clefts in the child, with a rationale for every node and arrow
and published references for several of them. It shows each kind of role
ggcausal() colors: an exposure, an outcome, a confounder, an unobserved
cause of the outcome, a collider created by counting only live births,
and a free text role. The structure is a teaching example rather than the
result of a formal review.
Format
A list of two data frames.
- nodes
Six nodes with columns
name,label,role,rationale,referencesandtiming.timingis not a reserved column, so it appears as a field in the hover card and panel.- edges
Eight arrows with columns
from,to,rationaleandreferences.