dat_to_MRInput: Convert TwoSampleMR format to MendelianRandomization format

View source: R/other_formats.R

dat_to_MRInputR Documentation

Convert TwoSampleMR format to MendelianRandomization format

Description

The MendelianRandomization package offers MR methods that can be used with the same data used in the TwoSampleMR package. This function converts from the TwoSampleMR format to the MRInput class.

Usage

dat_to_MRInput(dat, get_correlations = FALSE, pop = "EUR")

Arguments

dat

Output from the harmonise_data() function.

get_correlations

Default FALSE. If TRUE then extract the LD matrix for the SNPs from the European 1000 genomes data on the MR-Base server.

pop

If get_correlations is TRUE then use the following

Value

List of MRInput objects for each exposure/outcome combination


MRCIEU/TwoSampleMR documentation built on Sept. 28, 2024, 6:51 p.m.