Skip to main content
. Author manuscript; available in PMC: 2024 Sep 1.
Published in final edited form as: Epidemiology. 2023 Jul 31;34(5):661–672. doi: 10.1097/EDE.0000000000001643

Table 1.

Closed-form formulas for NDE and NIE with different mediator and outcome models.

NDE
Linear mediator model, Linear outcome model aa*θ1+θ3β0+β1a*+β2c+β3a*c+θ5c

Logistic mediator model, Linear outcome model aa*θ1+θ3expitβ0+β1a*+β2c+β3a*c+θ5c

Linear mediator model, Non-linear outcome model exp(aa*θ1+θ5c+θ3β0+β1a*+β2c+β3a*c+12σ2θ32θ2+θ3a+θ3a*+2θ6c)

Logistic mediator model, Non-linear outcome model expθ1+θ5caa*1+expβ0+β1a*+β2c+β3a*c+θ2+θ3a+θ6c1+expβ0+β1a*+β2c+β3a*c+θ2+θ3a*+θ6c

NIE
Linear mediator model, Linear outcome model θ2+θ3a+θ6cβ1+β3caa*

Logistic mediator model, Linear outcome model θ2+θ3a+θ6cexpitβ0+β1a+β2c+β3acexpitβ0+β1a*+β2c+β3a*c

Linear mediator model, Non-linear outcome model expθ2+θ3a+θ6cβ1+β3caa*

Logistic mediator model, Non-linear outcome model 1+expβ0+β1a+β2c+β3ac+θ2+θ3a+θ6c1+expβ0+β1a*+β2c+β3a*c+θ2+θ3a+θ6c1+expβ0+β1a*+β2c+β3a*c1+expβ0+β1a+β2c+β3ac

The formulas for non-linear outcome model accommodate logistic, log-linear, Poisson, negative binomial, accelerated failure time model and a Cox proportional hazards model, with appropriate link functions and modeling assumptions. Note that logistic and Cox proportional hazards model require the outcome to be rare. Details are in the Supplement (Section 2.1). NDE=natural direct effect; NIE=natural indirect effect.