Skip to content
Causal DAG templates

Math — Causal DAG: Mediation vs Moderation

A mediator lies on the path; a moderator changes it.

Template previewCausal DAG
Mediation vs moderationEExposureMMediatorOOutcomeWModeratorExposureOutcomeConfounderMediatorUnobservedThe exposure is unconfounded: every backdoor path is already blocked, so the crude association estimates the total effect. 4 variables, 5 edge…No adjustment is needed: the exposure is unconfounded in this diagram, so the crude association between `Exposure` and `Outcome` already estimates the total effec…

Make it your own.

title "Mediation vs moderation"
exposure E "Exposure"
mediator M "Mediator"
outcome O "Outcome"
node W "Moderator"
E -> M
M -> O
E -> O
W -> M
W -> O