Roles and identification
Every node has exactly one role: intermediate, exposure, or outcome. Never both exposure and outcome. DAGitty import that marks both is rejected.
Three flags sit next to role. They are independent of each other and of role:
| Flag | Key | Purpose |
|---|---|---|
| Observed | U toggles off | Default. In the data. |
| Unobserved | U | DAGitty latent. Not in the data. Dashed outline; SEM ellipse. Identification will not ask you to adjust for it. |
| Adjusted | A | Already conditioned on. Must-include in adjustment sets. Pale fill. |
| Selection | S | Sampling / selection bias (DAGitty selected). Rectangle even in circle mode. Required for the causal odds ratio. |
| Role | Color | What it is for |
|---|---|---|
| Intermediate | Blue | Default. Covariate, mediator, other. |
| Exposure | Green | A cause / treatment you want the total effect of. |
| Outcome | Orange | An effect of interest. |
What roles change
- Fill color on the canvas.
- Causal identification — total/direct adjustment need ≥1 exposure and ≥1 outcome; instruments and the causal odds ratio need unique X and Y (COR also needs unique S).
- Network diameter and radius — exogenous (in-degree 0) → marked
outcomes. No outcome role, those two stats are
—. - Role-based path colors (Paths off): lime causal, magenta biasing, ancestor tints on intermediates.
What roles do not change
- Paths — uses the selection set, not roles. You can trace two intermediates.
- Conditional independencies — implied by the DAG regardless of roles.
- Most network stats — degrees, density, triples, PageRank, and so on.
What identification answers
Given this DAG, which covariates identify the effect you asked for?
| Identification | Question |
|---|---|
| Total effect | What do I adjust for to get the total effect of X on Y? |
| Direct effect | What do I adjust for to isolate X → Y? |
| Instrument | Is there a (conditional) instrument Z for X → Y? |
| Causal odds ratio | Under selection S, which Z identify the causal odds ratio? |
Pallium answers that in Causal mode. It does not run a regression, and it does not know if the DAG is true. Details: Causal analytics.