Convert TwoSampleMR format to MendelianRandomization format
Source:R/other_formats.R
dat_to_MRInput.Rd
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.
Arguments
- dat
Output from the
harmonise_data()
function.- get_correlations
Default
FALSE
. IfTRUE
then extract the LD matrix for the SNPs from the European 1000 genomes data on the MR-Base server.- pop
If
get_correlations
isTRUE
then use the following