ezmediate | R Documentation |
mediate
function in mediation similarly to hitman
Call mediate
function in mediation similarly to hitman
.
ezmediate(E, M, Y, covariates = NULL, sims = 10^4)
E |
A numeric vector of exposures. |
M |
Vector of a potential mediator. |
Y |
A numeric vector of |
covariates |
Numeric vector with one element per sample or matrix-like object with rows corresponding to samples and columns to covariates to be adjusted for. |
sims |
Number of simulations per analyte to calculate mediation. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.