Skip to contents

Perform all Mendelian randomization tests

Usage

mr(
  dat,
  parameters = default_parameters(),
  method_list = subset(mr_method_list(), use_by_default)$obj
)

Arguments

dat

Harmonised exposure and outcome data. Output from harmonise_data().

parameters

Parameters to be used for various MR methods. Default is output from default_parameters().

method_list

List of methods to use in analysis. See mr_method_list() for details.

Value

List with the following elements:

mr

Table of MR results

extra

Table of extra results