Part of the set of internal functions for estimating bootstrapped CIs for the coefficients of the mediation model for continuous outcome and two treatment groups.
bootci_coeff_2trt(trt, t.seq, M, Y, t.est, deltat, replicates)
a vector indicating treatment group
a vector of time points for each observation
matrix of mediator values in wide format
matrix of outcome values in wide format
time points at which to make the estimation. Default = t.seq
a small constant which controls the time-lag of the effect of the mediator on the outcome.
number of replicates for bootstrapping confidence intervals. Default = 1000
CI upper limit for coefficient hat.alpha
CI lower limit for coefficient hat.alpha
CI upper limit for coefficient hat.gamma
CI lower limit for coefficient hat.gamma
CI upper limit for coefficient hat.beta
CI lower limit for coefficient hat.beta
CI upper limit for coefficient hat.tau
CI lower limit for coefficient hat.tau