Part of the set of internal functions called within the tvma
function to assist
in the estimation of time varying mediation effect.
newMediatorOutcome(trt, M, Y)
numeric binary treatment group indicator for each individual
(t.seq x N) matrix where N = number of observations. Column 1 is mediator at time t-1. Column 2 is mediator at time t.
(Nx1) matrix were N = number of observations. Column 1 is outcome at time t-1.
list containing new mediators, outcomes, and index of complete cases