Part of the set of internal functions called within the tvmcurve_3trt
function
to assist in the estimation of time varying mediation effect.
coeff(j, T1, T2, x, y)
a number indicating time point of observation
a vector indicating assignment to treatment 1
a vector indicating assignment to treatment 2
matrix of mediator values in wide format
matrix of outcome outcomes in wide format
estimated coefficients of the mediation model
index of complete cases