tvmcurve_3trt: Main function for time varying mediation function for...

View source: R/tvmcurve_3trt.R

tvmcurve_3trtR Documentation

Main function for time varying mediation function for continuous outcome and three treatment arms (i.e., exposure groups).

Description

Part of the set of internal functions to estimate the time-varying mediation effect and bootstrap standard errors for three treatment groups and continuous outcome.

Usage

tvmcurve_3trt(T1, T2, t.seq, x, y, t.est)

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

x

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

Value

hat.alpha1

estimated Treatment 1 effect on mediator

hat.alpha2

estimated Treatment 2 effect on mediator

hat.gamma1

estimated Treatment 1 direct effect on outcome

hat.gamma2

estimated Treatment 2 direct effect on outcome

hat.tau1

estimated Treatment 1 total effect on outcome

hat.tau2

estimated Treatment 2 total effect on outcome

hat.beta

estimated mediator effect on outcome

hat.mediation1

time varying mediation effect for Treatment 1 on outcome

hat.mediation2

time varying mediation effect for Treatment 2 on outcome


tvmediation documentation built on May 25, 2022, 9:05 a.m.