estBootCIs {tvmediation} | R Documentation |
Part of the set of internal functions for estimating bootstrapped confidence intervals
for continuous outcome and two treatment groups when user argument CI="boot"
.
estBootCIs(trt, t.seq, M, Y, t.est, deltat, replicates)
trt |
a vector indicating treatment group |
t.seq |
a vector of time points at each obs |
M |
matrix of mediator values |
Y |
matrix of outcome values |
t.est |
time points at which to make the estimation |
deltat |
a small constant which controls the time-lag of the effect of the mediator on the outcome, half the time between two time points |
replicates |
number of replicates for bootstrapping confidence intervals. |
boot.sebootstrapped standard error for the estimated mediation effect
CI.upperpercentile bootstrapped CI upper limit for the estimated mediation effect
CI.lowerpercentile bootstrapped CI lower limit for the estimated mediation effect