bootci_coeff_2trt {tvmediation}R Documentation

Bootstrap function for computing CIs for coefficients for a continuous outcome and two treatment groups

Description

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.

Usage

bootci_coeff_2trt(trt, t.seq, M, Y, t.est, deltat, replicates)

Arguments

trt

a vector indicating treatment group

t.seq

a vector of time points for each observation

M

matrix of mediator values in wide format

Y

matrix of outcome values in wide format

t.est

time points at which to make the estimation. Default = t.seq

deltat

a small constant which controls the time-lag of the effect of the mediator on the outcome.

replicates

number of replicates for bootstrapping confidence intervals. Default = 1000

Value

CI.upper.alpha

CI upper limit for coefficient hat.alpha

CI.lower.alpha

CI lower limit for coefficient hat.alpha

CI.upper.gamma

CI upper limit for coefficient hat.gamma

CI.lower.gamma

CI lower limit for coefficient hat.gamma

CI.upper.beta

CI upper limit for coefficient hat.beta

CI.lower.beta

CI lower limit for coefficient hat.beta

CI.upper.tau

CI upper limit for coefficient hat.tau

CI.lower.tau

CI lower limit for coefficient hat.tau


[Package tvmediation version 1.1.0 Index]