reverseMRdata: reverseMRdata

Description Usage Arguments Value Author(s)

View source: R/reverseMRdata.R

Description

Apply MR methods from the MendelianRandomization package in scenarios of reverse causality.

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/reverseCT documentation built on Oct. 30, 2019, 11:54 p.m.