Skip to contents

run Gene-based MR analyses with correlated IVs

Usage

runGeneMendelianRandomization(datMR, ldRef, pval = 1e-04, corr = TRUE)

Arguments

datMR

data frame from TwoSampleMR::harmonised_data()

ldRef

1KG reference panel for getting LD matrices

pval

threshold for selecting IVs at p-value

corr

corr=c(TRUE,FALSE) indicator of inclusion of correlated IVs or not