Calculate total effect, natural direct and indirect effect.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
data |
Data to be used to ceate matrix. |
id.vars |
ID variable name. |
time.var |
Time indexing varaible name. |
baseline.vars |
A vector of baseline variables and time-fixed variable names. |
exposure.model |
Exposure model, only binomial outcome supported. |
exposure.vars |
A vector of exposure variables, including lagged exposure variables. |
mediator.model |
Mediator model. |
mediator.family |
Model link function, |
outcome |
Outcome variable name. |
is.expL |
Is time-time varying exposure, defualt is TRUE. |
censor.model |
Censor model. Censoring indicator should be coded as remaing uncensored (as 1). |
bound.value |
Bound weights, between 0 and 0.5. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.