Description Usage Arguments Value Author(s) Examples
The reverseMA function examines the direct and indirect path in mediation analysis when the mediator and outcome are (1) correctly specified and (2) incorrectly specified.
1 |
n |
is the sample size of the population that is being simulated. |
pX |
is the MAF of the SNP |
gamma0 |
is the intercept for the effect of the SNP on the mediator M |
gammaX |
is the effect of the SNP X on the mediator M |
varM |
varM |
beta0 |
beta0 |
betaX |
betaX |
betaM |
betaM |
varY |
varY |
nSim |
nSim |
nSimImai |
nSimImai |
SEED |
SEED |
plot.pdf |
T then a plot is produced |
plot.name |
the name of the plot produced |
alpha_level |
the significance level |
The function outputs a matrix of the results and produces a plot.
Sharon Lutz, Annie Thwing
1 | reverseMA(n = 100,nSim = 10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.