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:

FlagKeyPurpose
ObservedU toggles offDefault. In the data.
UnobservedUDAGitty latent. Not in the data. Dashed outline; SEM ellipse. Identification will not ask you to adjust for it.
AdjustedAAlready conditioned on. Must-include in adjustment sets. Pale fill.
SelectionSSampling / selection bias (DAGitty selected). Rectangle even in circle mode. Required for the causal odds ratio.
RoleColorWhat it is for
IntermediateBlueDefault. Covariate, mediator, other.
ExposureGreenA cause / treatment you want the total effect of.
OutcomeOrangeAn 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?

IdentificationQuestion
Total effectWhat do I adjust for to get the total effect of X on Y?
Direct effectWhat do I adjust for to isolate X → Y?
InstrumentIs there a (conditional) instrument Z for X → Y?
Causal odds ratioUnder 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.