The test is for testing the null hypothesis \(b_2=0\)
versus the alternative hypothesis \(b_2\neq 0\)
for the poisson regressions:
$$\log(E(Y_i))=b_0+b_1 x_i + b_2 m_i $$
Vittinghoff et al. (2009) showed that for the above poisson regression, testing the mediation effect
is equivalent to testing the null hypothesis \(H_0: b_2=0\)
versus the alternative hypothesis \(H_a: b_2\neq 0\), if the
correlation corr.xm
between the primary predictor and mediator is non-zero.
The full model is
$$\log(E(Y_i))=b_0+b_1 x_i + b_2 m_i $$
The reduced model is
$$\log(E(Y_i))=b_0+b_1 x_i$$
Vittinghoff et al. (2009) mentioned that if confounders need to be included
in both the full and reduced models, the sample size/power calculation formula
could be accommodated by redefining corr.xm
as the multiple
correlation of the mediator with the confounders as well as the predictor.