bootci_tvmb {tvmediation} | R Documentation |
Bootstrap samples to estimate confidence intervals for the mediation effect for a binary outcome.
Description
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"
.
Usage
bootci_tvmb(
treatment,
t.seq,
m,
outcome,
coeff_data,
span = 0.75,
replicates = 1000
)
Arguments
treatment |
a vector indicating treatment group |
t.seq |
a vector of unique time points for each observation |
m |
matrix of mediator values in wide format |
outcome |
matrix of outcome values in wide format |
coeff_data |
a merged dataset of indirect and direct effects and CIs estimated
from |
span |
Numeric value of the span to be used for LOESS regression. Default = 0.75. |
replicates |
number of replicates for bootstrapping CIs. Default = 1000. |
Value
timeseq |
time points of estimation |
alpha_hat |
time-varying treatment effect on the mediator |
CI.lower.a |
CI lower limit for estimated coefficient alpha_hat |
CI.upper.a |
CI upper limit for estimated coefficient alpha_hat |
gamma_hat |
time-varying treatment effect on the outcome (direct effect) |
CI.lower.g |
CI lower limit for estimated coefficient gamma_hat |
CI.upper.g |
CI upper limit for estimated coefficient gamma_hat |
beta_hat |
time-varying effect of the mediator on the outcome |
CI.lower.b |
CI lower limit for estimated coefficient beta_hat |
CI.upper.b |
CI upper limit for estimated coefficient beta_hat |
tau_hat |
time-varying treatment effect on outcome (total effect) |
CI.lower.t |
CI lower limit for estimated coefficient tau_hat |
CI.upper.t |
CI upper limit for estimated coefficient tau_hat |
medEffect |
time varying mediation effect |
CI.lower |
CI lower limit for medEffect |
CI.upper |
CI upper limit for medEffect |