Part of the set of internal functions for estimating bootstrapped confidence intervals
for the mediation effect for a binary outcome when user argument CI="boot"
.
bootci_tvmb(
treatment,
t.seq,
m,
outcome,
coeff_data,
span = 0.75,
replicates = 1000
)
a vector indicating treatment group
a vector of unique time points for each observation
matrix of mediator values in wide format
matrix of outcome values in wide format
a merged dataset of indirect and direct effects and CIs estimated
from bootci_coeff_binary
Numeric value of the span to be used for LOESS regression. Default = 0.75.
number of replicates for bootstrapping CIs. Default = 1000.
time points of estimation
time-varying treatment effect on the mediator
CI lower limit for estimated coefficient alpha_hat
CI upper limit for estimated coefficient alpha_hat
time-varying treatment effect on the outcome (direct effect)
CI lower limit for estimated coefficient gamma_hat
CI upper limit for estimated coefficient gamma_hat
time-varying effect of the mediator on the outcome
CI lower limit for estimated coefficient beta_hat
CI upper limit for estimated coefficient beta_hat
time-varying treatment effect on outcome (total effect)
CI lower limit for estimated coefficient tau_hat
CI upper limit for estimated coefficient tau_hat
time varying mediation effect
CI lower limit for medEffect
CI upper limit for medEffect