lotman | R Documentation |
Low-throughput mediation analysis to test if rows of M
mediate the effect of exposure E
on outcome
Y
. Before applying Lotman, you should know a priori the direction that E
changes Y
and verify
that E
changes Y
significantly and in the same direction here.
lotman(
E,
M,
Y,
covariates = NULL,
fam = "gaussian",
reorder.rows = TRUE,
fdr.method = c("BH", "BY"),
verbose = TRUE,
check.names = TRUE
)
E |
A numeric vector of exposures. |
M |
A numeric matrix-like data object with one row per feature and one column per sample of mediators. |
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. |
fam |
Character string of family to use in generalized linear model of |
reorder.rows |
Logical, should rows be reordered by p-value? |
fdr.method |
Character string; either "BH" for Benjamini-Hochberg or "BY" for Benjamini-Yekutieli. See stats::p.adjust. |
verbose |
Logical; should messages be given for lack of association between |
check.names |
Logical; should |
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 columns
Overall chi-square for mediation on 1 degreee of freedom.
Overall p-value for mediation
Overall FDR for mediation
z-score for E–>M, not accounting for direction
p-value for E–>M, not accounting for direction
z-score for M–>Y, not accounting for direction
p-value for M–>Y, not accounting for direction
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.