Description Usage Arguments Value Author(s)
View source: R/reverseMRdata.R
Apply MR methods from the MendelianRandomization package in scenarios of reverse causality.
1 | reverseMRdata(nSNP = 3, X, M, Y, SEED = 1)
|
nSNP |
the number of SNPS |
X |
is a vector of SNP data, where each SNP is a column and the number of rows is the number of subjects |
M |
is the mediator |
Y |
is the outcome |
SEED |
is the seed |
a list of Estimates and p-values for the direct and indirect effects in situations with and without reverse causality.
Annie Thwing, Sharon Lutz
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.