### Mediator model

Call:
glm(formula = bili_bin ~ trt, family = binomial(link = "logit"), 
    data = data)

Deviance Residuals: 
    Min       1Q   Median       3Q      Max  
-1.0383  -1.0383  -0.9943   1.3232   1.3723  

Coefficients:
            Estimate Std. Error z value Pr(>|z|)
(Intercept)  -0.2256     0.4620  -0.488    0.625
trt          -0.1108     0.2914  -0.380    0.704

(Dispersion parameter for binomial family taken to be 1)

    Null deviance: 264.30  on 195  degrees of freedom
Residual deviance: 264.15  on 194  degrees of freedom
AIC: 268.15

Number of Fisher Scoring iterations: 4

### Outcome model

Call:
glm(formula = spiders ~ trt + bili_bin + trt:bili_bin, family = poisson(link = "log"), 
    data = data)

Deviance Residuals: 
    Min       1Q   Median       3Q      Max  
-0.9142  -0.9075  -0.5734   0.7621   1.3928  

Coefficients:
             Estimate Std. Error z value Pr(>|z|)   
(Intercept)  -1.66365    0.58664  -2.836  0.00457 **
trt          -0.07095    0.37184  -0.191  0.84867   
bili_bin      0.76153    0.67005   1.137  0.25574   
trt:bili_bin  0.08577    0.42433   0.202  0.83982   
---
Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

(Dispersion parameter for poisson family taken to be 1)

    Null deviance: 198.14  on 275  degrees of freedom
Residual deviance: 183.51  on 272  degrees of freedom
AIC: 351.51

Number of Fisher Scoring iterations: 6

### Mediation analysis 
             est         se           Z         p      lower     upper  exp(est) exp(lower) exp(upper)
cde   0.05894618 0.38707150  0.15228757 0.8789601 -0.6997000 0.8175924 1.0607181  0.4967343   2.265040
pnde -0.01964641 0.22465131 -0.08745292 0.9303115 -0.4599549 0.4206621 0.9805453  0.6313121   1.522970
tnie -0.03124259 0.08305389 -0.37617250 0.7067887 -0.1940252 0.1315400 0.9692404  0.8236371   1.140584
tnde -0.02286713 0.22979725 -0.09951003 0.9207333 -0.4732615 0.4275272 0.9773923  0.6229672   1.533461
pnie -0.02802187 0.07411801 -0.37807101 0.7053778 -0.1732905 0.1172468 0.9723671  0.8408933   1.124397
te   -0.05088900 0.24128901 -0.21090477 0.8329616 -0.5238068 0.4220288 0.9503842  0.5922616   1.525052
pm    0.60789381 2.80827079  0.21646552 0.8286249 -4.8962158 6.1120034        NA         NA         NA

Evaluated at:
avar: trt
 a1 (intervened value of avar) = 2.3
 a0 (reference value of avar)  = 1.1
mvar: bili_bin
 m_cde (intervend value of mvar for cde) = 1.4
cvar: 
 c_cond (covariate vector value) = 

Note that effect estimates can vary over m_cde and c_cond values when interaction = TRUE.
