Skip to contents

Data input functions

mr_input()
Inputting and formatting data for use in causal estimation
mr_mvinput()
Inputting and formatting data for use in causal estimation
phenoscanner()
PhenoScanner
pheno_input()
Extract summarized data from PhenoScanner

Univariable methods

mr_allmethods()
Mendelian randomization estimation using all methods
mr_cML()
Constrained maximum likelihood (cML) method
mr_conmix()
Contamination mixture method
mr_divw()
Debiased inverse-variance weighted method
mr_egger()
MR-Egger method
mr_ivw()
Inverse-variance weighted method
mr_hetpen()
Heterogeneity-penalized method
mr_lasso()
MR-Lasso method
mr_maxlik()
Maximum-likelihood method
mr_mbe()
Mode-based method of Hartwig
mr_median()
Median-based method
mr_pcgmm()
Univariable principal components generalized method of moments (PC-GMM) method
mr_pivw()
Penalized inverse-variance weighted method
mr_clr()
Conditional likelihood ratio (CLR) method

Multivariable methods

mr_mvivw()
Multivariable inverse-variance weighted method
mr_mvlasso()
Multivariable MR-Lasso method
mr_mvmedian()
Multivariable median-based method
mr_mvcML()
Multivariable constrained maximum likelihood method
mr_mvegger()
Multivariable MR-Egger method
mr_mvgmm()
Multivariable generalized method of moments (GMM) method
mr_mvpcgmm()
Multivariable principal components generalized method of moments (PC-GMM) method
mr_mvivwme()
Multivariable inverse-variance weighted method with measurement error

Graphical functions

mr_plot()
Draw a scatter plot of the genetic associations and/or causal estimates
mr_forest()
Draw a forest plot of causal estimates
mr_funnel()
Draw a funnel plot of variant-specific estimates
mr_loo()
Leave-one-out estimates

Example datasets

calcium calciumse fastgluc fastglucse calc.rho
Data on effect of calcium on fasting glucose (correlated variants)
ldlc hdlc hdlcse ldlcse trig trigse chdlodds chdloddsse lipid_effect lipid_other lipid_eaf
Data on lipid effects on coronary artery disease (uncorrelated variants)

Output descriptions

DIVW-class
DIVW Class
Egger-class
Egger Class
IVW-class
IVW Class
MaxLik-class
MaxLik Class
MRAll-class
MRAll Class
MRcML-class
MRcML Class
MRConMix-class
MRConMix Class
MRHetPen-class
MRHetPen Class
MRInput-class
MRInput Class
MRLasso-class
MRLasso class
MRMBE-class
MRMBE Class
MRMVInput-class
MRMVInput Class
MVEgger-class
MVEgger Class
MVGMM-class
MVGMM Class
MVIVW-class
MVIVW Class
MVLasso-class
MRMVLasso class
MVMedian-class
MRMVMedian class
MVMRcML-class
MVMRcML Class
PIVW-class
PIVW Class
WeightedMedian-class
WeightedMedian Class
MVPCGMM-class
MVPCGMM Class
PCGMM-class
PCGMM Class
MVIVWME-class
MVIVWME Class
CLR-class
CLR Class