do_mr | R Documentation |
Runs Mendelian randomisation and related analyses:
Wald ratio, see .wr_taylor_approx()
Inverse variance weighted, see .ivw.delta()
Steiger filtering, see TwoSampleMR::directionality_test()
do_mr(dat, f_cutoff = 10, all_wr = TRUE, verbose = TRUE)
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) |
A data.frame of MR results
[.wr_taylor_approx()], [.ivw_delta()], [TwoSampleMR::directionality_test()]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.