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.
dat_to_MRInput(dat, get_correlations = FALSE, pop = "EUR")
Output from the
If get_correlations is TRUE then use the following
List of MRInput objects for each exposure/outcome combination