DAGs
Directed Acyclic Graphs: They’re graphs with things (nodes) and lines (edges/paths) connecting them (not all of them usually.) But the lines are pointed (only in one direction) and you cannot have loops: you cannot start at one box and come back to it by following the pointy lines around the graph.
DAGs encode causal assumptions and structure at a high level. Very useful stuff. They’re not just pretty visualizations of treatments, effects, and confounders.
In , the arrow means that statistical association “flows” from to .
Since this is in a biostats context, we’ll say that
Also, direction matters. TODO: Association is plain lines?
Nodes
Not much going on here. You have parents, children, ancestors, and descendants.
Paths
Causal, Non-Causal, and Simple-Ass
It’s all about where you want to start to where you want to end. In the examples below I am going from . Things change if I’m going, for example, from .
Causal is easy. It’s arrows “all the way” from one node to another.
In a Non-Causal path, at least one arrow is flipped.
A Simple-Ass Path1 doesn’t have pointy arrows. You draw this out to check later for collider paths, backdoor paths, causal paths, and so on.
Backdoors
You see a “reverse arrow”, a backdoor, first. Let’s say you’re studying . This is a backdoor path. Note: the entire path is a backdoor path! Not just from
This isn’t2:
But it is a backdoor path if you are studying ! Note that this is related to non-causal paths but not all non-causal paths are backdoor paths!
These are important becuase we don’t want them. They confound.
Conditioning
Open and Blocked
Both are regular-ass paths! They are neither
Patterns
d-Separation
Fancy term! TLDR: We use this to check if unwanted paths are blocked. That’s it. ++This does not mean that there are no paths between and ++! Simple-ass paths still exist. They’re just blocked.
The Trick
Remove all arrows going out of A. This means that all arrows going into A must be backdoor paths. You want to block these.
Marginal and Conditional
The Backdoor Criteria
Three questions:
- Does confounding exist?
- Can it be eliminated?
- What nodes are necessary to eliminate the confounding? We put these in an Adjustment Set
Remember that the goal here is to study the causal effect of on . So,
- Causal paths from to should remain intact, and
- Non-causal backdoor paths should be blocked
Be lazy. Look for the smallest set. Remember that any one node in a chain can work. For example:
M-Bias
The “M” comes from the shape.
Network effect. You may think you’re all set when you block some node but, especially in the case of those pesky colliders, this may create problems in other paths.
Miscellaneous
Do you block mediators? Not usually. Not if you want the total causal effect.