do_mr: Run Mendelian randomisation analyses

View source: R/mr.r

do_mrR Documentation

Run Mendelian randomisation analyses

Description

Runs Mendelian randomisation and related analyses:

  1. Wald ratio, see .wr_taylor_approx()

  2. Inverse variance weighted, see .ivw.delta()

  3. Steiger filtering, see TwoSampleMR::directionality_test()

Usage

do_mr(dat, f_cutoff = 10, all_wr = TRUE, verbose = TRUE)

Arguments

dat

A data.frame of harmonised data

f_cutoff

Define an F-statistic cutoff (Optional)

all_wr

Should the Wald ratio be calculated for all SNPs, even if IVW can be used? (Optional)

verbose

Display verbose information (Optional, boolean)

Value

A data.frame of MR results

See Also

[.wr_taylor_approx()], [.ivw_delta()], [TwoSampleMR::directionality_test()]


jwr-git/mrpipeline documentation built on Oct. 2, 2022, 3:41 p.m.