View source: R/newMediatorOutcome.R
newMediatorOutcome | R Documentation |
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)
trt |
numeric binary treatment group indicator for each individual |
M |
(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. |
Y |
(Nx1) matrix were N = number of observations. Column 1 is outcome at time t-1. |
newMO |
list containing new mediators, outcomes, and index of complete cases |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.