Learn R Programming

⚠️There's a newer version (0.10.0) of this package.Take me there.

MendelianRandomization (version 0.6.0)

Mendelian Randomization Package

Description

Encodes several methods for performing Mendelian randomization analyses with summarized data. Summarized data on genetic associations with the exposure and with the outcome can be obtained from large consortia. These data can be used for obtaining causal estimates using instrumental variable methods.

Copy Link

Version

Install

install.packages('MendelianRandomization')

Monthly Downloads

2,602

Version

0.6.0

License

GPL-2 | GPL-3

Maintainer

Stephen Burgess

Last Published

February 22nd, 2022

Functions in MendelianRandomization (0.6.0)

Egger-class

Egger Class
MRConMix-class

MRConMix Class
IVW-class

IVW Class
MRMVInput-class

MRMVInput Class
MRInput-class

MRInput Class
MRAll-class

MRAll Class
MRMBE-class

MRMBE Class
DIVW-class

DIVW Class
MRHetPen-class

MRHetPen Class
MRLasso-class

MRLasso class
MVLasso-class

MRMVLasso class
ldlc

Data on lipid effects on coronary artery disease (uncorrelated variants)
het.weight

Heterogeneity-penalized weight function
mr_forest

Draw a forest plot of causal estimates
mr_funnel

Draw a funnel plot of variant-specific estimates
MVIVW-class

MVIVW Class
mr_hetpen

Heterogeneity-penalized method
MVEgger-class

MVEgger Class
mr_input

Inputting and formatting data for use in causal estimation
extract.pheno.csv

Extract summarized data from a PhenoScanner .csv file (legacy)
MaxLik-class

MaxLik Class
WeightedMedian-class

WeightedMedian Class
mr_divw

Debiased inverse-variance weighted method
getter

Applies method $ to different classes
mr_egger

MR-Egger method
MVMedian-class

MRMVMedian class
ci_t

Calculate confidence intervals using the t-distribution
loglikelihoodrhocorrel

Calculates log-likelihood with correlation from sample overlap
mr_median

Median-based method
coursedata

Course data
model.prior

Prior weight function
egger.bounds

Calculates confidence intervals for the MR-Egger method
mr_mbe

Mode-based method of Hartwig
mr_mvegger

Multivariable MR-Egger method
decimals

Produce nicely rounded numbers
mbe_est

Mode-based estimate (Hartwig) estimation function
mbe_boot

Mode-based estimate (Hartwig) bootstrap function
mr_loo

Leave-one-out estimates
mr_mvinput

Inputting and formatting data for use in causal estimation
mr_maxlik

Maximum-likelihood method
pheno_input

Extract summarized data from PhenoScanner
phenoscanner

PhenoScanner
weighted.median

Weighted median function
penalised.weights

Calculates p-values for penalization of weights
penalised.weights.delta

Calculates p-values for penalization of weights with second-order weights
weighted.median.boot.se

Weighted median standard error function
mr_mvmedian

Multivariable median-based method
mr_mvlasso

Multivariable MR-Lasso method
mr_mvivw

Multivariable inverse-variance weighted method
mr_plot

Draw a scatter plot of the genetic associations and/or causal estimates
calcium

Data on effect of calcium on fasting glucose (correlated variants)
ci_normal

Calculate confidence intervals using the normal distribution
loglikelihood

Calculates log-likelihood with uncorrelated variants in two-sample setting (no correlation from sample overlap)
loglikelihoodcorrel

Calculates log-likelihood with correlated variants in two-sample setting (no correlation from sample overlap)
simpleCap

Capitalize a word
values

Applies method values() to different output classes
mr_allmethods

Mendelian randomization estimation using all methods
mr_conmix

Contamination mixture method
mr_ivw

Inverse-variance weighted method
mr_lasso

MR-Lasso method
r.weights.delta

Calculates p-values for penalization of weights with second-order weights
r.weights

Calculates p-values for penalization of weights