Flash Sale | 50% off

Last chance! 50% off unlimited learning

Sale ends in


MendelianRandomization (version 0.10.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.10.0

License

GPL-2 | GPL-3

Maintainer

Stephen Burgess

Last Published

April 12th, 2024

Functions in MendelianRandomization (0.10.0)

MVGMM-class

MVGMM Class
PIVW-class

PIVW Class
cML_SdTheta

Standard Error of Estimated Theta
cML_estimate

Estimate with Regular Likelihood
MaxLik-class

MaxLik Class
PCGMM-class

PCGMM Class
decimals

Produce nicely rounded numbers
MVPCGMM-class

MVPCGMM Class
MVcML_SdTheta

Standard error estimate for MVMR-cML-BIC
MVMedian-class

MRMVMedian class
egger.bounds

Calculates confidence intervals for the MR-Egger method
ci_t

Calculate confidence intervals using the t-distribution
ci_normal

Calculate confidence intervals using the normal distribution
cML_estimate_random

Estimate with Regular Likelihood Using Multiple Random Start Points
loglikelihoodrhocorrel

Calculates log-likelihood with correlation from sample overlap
calcium

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

Mode-based estimate (Hartwig) bootstrap function
het.weight

Heterogeneity-penalized weight function
getter

Applies method $ to different classes
WeightedMedian-class

WeightedMedian Class
invcov_mvmr

Generate the list of inverse of covariance matrices used in MVMR-cML-DP
ldlc

Data on lipid effects on coronary artery disease (uncorrelated variants)
mbe_est

Mode-based estimate (Hartwig) estimation function
model.prior

Prior weight function
mr_allmethods

Mendelian randomization estimation using all methods
mr_cML

Constrained maximum likelihood (cML) method
MVmr_cML

MVMRcML method with Data Perturbation
MVmr_cML_DP

MVMRcML method with Data Perturbation
condFstat

Calculates conditional F-statistic for each risk factor using summarized data
mr_forest

Draw a forest plot of causal estimates
mr_funnel

Draw a funnel plot of variant-specific estimates
mr_divw

Debiased inverse-variance weighted method
mr_conmix

Contamination mixture method
mr_clr

Conditional likelihood ratio (CLR) method
mr_lasso

MR-Lasso method
mr_ivw

Inverse-variance weighted method
mr_egger

MR-Egger method
mr_hetpen

Heterogeneity-penalized method
loglikelihoodcorrel

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

Inputting and formatting data for use in causal estimation
coursedata

Course data
loglikelihood

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

Leave-one-out estimates
mr_mvgmm

Multivariable generalized method of moments (GMM) method
mr_median

Median-based method
mr_mbe

Mode-based method of Hartwig
mr_maxlik

Maximum-likelihood method
mr_mvinput

Inputting and formatting data for use in causal estimation
mr_mvcML

Multivariable constrained maximum likelihood method
mr_mvegger

Multivariable MR-Egger method
mr_mvlasso

Multivariable MR-Lasso method
pheno_input

Extract summarized data from PhenoScanner
mv_norm

Sampling from multivariate normal distribution
mr_mvivwme

Multivariable inverse-variance weighted method with measurement error
mr_mvivw

Multivariable inverse-variance weighted method
mr_mvmedian

Multivariable median-based method
mr_pivw

Penalized inverse-variance weighted method
penalised.weights.delta

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

Calculates p-values for penalization of weights
mr_plot

Draw a scatter plot of the genetic associations and/or causal estimates
weighted.median

Weighted median function
r.weights

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

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

Applies method values() to different output classes
simpleCap

Capitalize a word
weighted.median.boot.se

Weighted median standard error function
phenoscanner

PhenoScanner
pl

Profile likelihood of valid IVs
mr_pcgmm

Univariable principal components generalized method of moments (PC-GMM) method
mr_mvpcgmm

Multivariable principal components generalized method of moments (PC-GMM) method
DIVW-class

DIVW Class
MRConMix-class

MRConMix Class
MRLasso-class

MRLasso class
BF_dist

Generate bootstrap samples for the bootstrapping Fieller's confidence interval of the penalized inverse-variance weighted (pIVW) method
IVW-class

IVW Class
CLR-class

CLR Class
MRInput-class

MRInput Class
MRAll-class

MRAll Class
MRHetPen-class

MRHetPen Class
Egger-class

Egger Class
MRcML-class

MRcML Class
MRMBE-class

MRMBE Class
MVMRcML-class

MVMRcML Class
MVEgger-class

MVEgger Class
MVIVW-class

MVIVW Class
MRMVInput-class

MRMVInput Class
MVIVWME-class

MVIVWME Class
MVLasso-class

MRMVLasso class