bootci_coeff_3trt {tvmediation}R Documentation

Bootstrap samples to estimate confidence intervals for coefficients for a continuous outcome and three treatment groups.

Description

Part of the set of internal functions for estimating bootstrapped confidence intervals for the coefficients of the mediation model for a continuous outcome and three treatment groups.

Usage

bootci_coeff_3trt(
  T1,
  T2,
  t.seq,
  mediator,
  outcome,
  t.est,
  original.coeff,
  boot.sample = 1000
)

Arguments

T1

a vector indicating assignment to treatment 1

T2

a vector indicating assignment to treatment 2

t.seq

a vector of time points for each observation

mediator

matrix of mediator values in wide format

outcome

matrix of outcome values in wide format

t.est

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

original.coeff

a list of the estimated coefficients.

boot.sample

number of replicates for bootstrapping confidence intervals. Default = 1000.

Value

alw1

CI lower limit for estimated Treatment 1 effect on mediator

aup1

CI upper limit for estimated Treatment 1 effect on mediator

alw2

CI lower limit for estimated Treatment 2 effect on mediator

aup2

CI upper limit for estimated Treatment 2 effect on mediator

glw1

CI lower limit for estimated Treatment 1 direct effect on outcome

gup1

CI upper limit for estimated Treatment 1 direct effect on outcome

glw2

CI lower limit for estimated Treatment 2 direct effect on outcome

gup2

CI upper limit for estimated Treatment 2 direct effect on outcome

tlw1

CI lower limit for estimated Treatment 1 total effect on outcome

tup1

CI upper limit for estimated Treatment 1 total effect on outcome

tlw2

CI lower limit for estimated Treatment 2 total effect on outcome

tup2

CI upper limit for estimated Treatment 2 total effect on outcome

blw

CI lower limit for estimated effect of mediator on outcome

bup

CI upper limit for estimated effect of mediator on outcome


[Package tvmediation version 1.1.0 Index]