View source: R/joint_signif_mediation.R
joint_signif_mediation | R Documentation |
Joint significant mediation test for a single mediator.
joint_signif_mediation(E, M, Y, covariates = NULL)
E |
A numeric vector of exposures. |
M |
Numeric vector of mediator with one element per sample. |
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. |
E
and Y
cannot have NA
s. M
may have some NA
s, but rows that have
less non-missing values than 5 + ncol(covariates)
will be filtered out, and if verbose=TRUE
,
a message will be written with the number of rows filtered out.
Larger chi-square values are more significant.
Data frame with one row and columns EMY.p
, EM.p
, and MY.p
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.