estBootCIs {tvmediation} | R Documentation |
Bootstrapping samples to estimate mediation effects confidence intervals for continuous outcome and two treatment (exposure) groups.
Description
Part of the set of internal functions for estimating bootstrapped confidence intervals
for continuous outcome and two treatment groups when user argument CI="boot"
.
Usage
estBootCIs(trt, t.seq, M, Y, t.est, deltat, replicates)
Arguments
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. |
Value
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