64 Directed Acyclic Graphs

This chapter is under heavy development and may still undergo significant changes.

# Load the packages needed for the code below.
library(dplyr, warn.conflicts = FALSE)
library(dagitty)
library(ggdag, warn.conflicts = FALSE)

64.1 Chain

dag <- dagitty('dag {
  bb = "0, 0, 1, 1"
  x [pos = "-1, 0"]
  y [pos = "0, 0"]
  z [pos = "1, 0"]
  x -> y
  y -> z
}')
ggdag(dag)

64.2 Collider

dag <- dagitty('dag {
  bb = "0, 0, 1, 1"
  x [pos = "-1, 0"]
  y [pos = "0, 0"]
  z [pos = "1, 0"]
  x -> y
  z -> y
}')
ggdag(dag)

dag <- dagitty('dag {
  bb = "0, 0, 1, 1"
  x [pos = "-1, 0"]
  y [pos = "0, 0"]
  z [pos = "1, 0"]
  w [pos = "0, -1"]
  x -> y
  z -> y
  y -> w
}')
ggdag(dag)

64.3 Common cause

dag <- dagitty('dag {
  bb = "0, 0, 1, 1"
  x [pos = "-1, 0"]
  y [pos = "0, 0"]
  z [pos = "1, 0"]
  y -> x
  y -> z
}')
ggdag(dag)

64.4 Common effect

dag <- dagitty('dag {
  bb = "0, 0, 1, 1"
  x [pos = "-1, 0"]
  y [pos = "0, 0"]
  z [pos = "-1, 1"]
  x -> y
  z -> y
}')
ggdag(dag)

64.5 Comparing DAGs and RMSCC

Answers two different questions.

“The sufficient component cause model considers sets of actions, events, or states of nature which together inevitably bring about the outcome under consideration. The model gives an account of the causes of a particular effect. It addresses the question, ‘Given a particular effect, what are the various events which might have been its cause?’”22

“The potential outcomes or counterfactual model focuses on one particular cause or intervention and gives an account of the various effects of that cause. In contrast to the sufficient component cause framework, the potential outcomes framework addresses the question, ‘What would have occurred if a particular factor were intervened upon and thus set to a different level than it in fact was?’ Unlike the sufficient component cause framework, the counterfactual framework does not require a detailed knowledge of the mechanisms by which the factor affects the outcome.’22

References

22.
Hernán MA, Robins JM. Causal Inference: What If. CRC Press; 2020.