subset_on_method: Subset MR-results on method

View source: R/format_mr_results2.R

subset_on_methodR Documentation

Subset MR-results on method

Description

This function takes MR results from mr() and restricts to a single method per exposure x disease combination.

Usage

subset_on_method(
  mr_res,
  single_snp_method = "Wald ratio",
  multi_snp_method = "Inverse variance weighted"
)

Arguments

mr_res

Results from mr().

single_snp_method

Which of the single SNP methods to use when only 1 SNP was used to estimate the causal effect? The default is "Wald ratio".

multi_snp_method

Which of the multi-SNP methods to use when there was more than 1 SNPs used to estimate the causal effect? The default is "Inverse variance weighted".

Value

data frame.


MRCIEU/TwoSampleMR documentation built on May 2, 2024, 10:22 p.m.