reverseMRdata: reverseMRdata

Usage Arguments Value Author(s)

View source: R/reverseMRdata.R

Usage

1
reverseMRdata(nSNP = 3, X, M, Y, SEED = 1)

Arguments

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

Value

a list of Estimates and p-values for the direct and indirect effects in situations with and without reverse causality.

Author(s)

Annie Thwing, Sharon Lutz


SharonLutz/reverseC documentation built on Aug. 29, 2019, 5:58 a.m.