mr_singlesnp: Perform 2 sample MR on each SNP individually

View source: R/singlesnp.R

mr_singlesnpR Documentation

Perform 2 sample MR on each SNP individually

Description

Perform 2 sample MR on each SNP individually

Usage

mr_singlesnp(
  dat,
  parameters = default_parameters(),
  single_method = "mr_wald_ratio",
  all_method = c("mr_ivw", "mr_egger_regression")
)

Arguments

dat

Output from harmonise_data().

parameters

List of parameters. The default is default_parameters().

single_method

Function to use for MR analysis. The default is "mr_wald_ratio".

all_method

Functions to use for MR analysis. The default is c("mr_ivw", "mr_egger_regression").

Value

List of data frames


MRCIEU/TwoSampleMR documentation built on March 26, 2024, 6:11 a.m.