Mendelian Randomization Package
Overview
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.
Removed extract.pheno.csv command and PhenoScanner example data.
Added conditional likelihood ratio method and other weak instrument robust identification tests (mr_clr) - thanks to Sheng Wang for coding!
Changed default threshold for PCs in mr_pcgmm and mr_mvpcgmm from 0.999 to 0.99.
Added multivariable IVW with measurement error method (mr_mvivwme) - thanks to Andrew Grant and Ville Karhunen for coding!
From NEWS in the release
Install
Health
- OK13 OK2026-09-08
- ERROR12 OK, 1 ERROR2026-09-07
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
Show 5 earlier changesHide 5 earlier changes
- ERROR12 OK, 1 ERROR2026-06-08
- OK12 OK2026-04-25
- NOTE12 OK, 2 NOTE2026-04-22
- ERROR11 OK, 2 NOTE, 1 ERROR2026-04-18
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- Help pages
- 88 (25 internal)
- Examples that run
- 96%46 run in a plain check · 2 hold no code
- Exported functions with examples
- 93%
- Documented parameters
- 99%
- Return-value docs
- 87%
- Help pages citing references
- 27%
Downloads
Dependencies
Installing MendelianRandomization adds 80 packages (44 with compiled code, 73 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.
Code & Tests
People & History
Show 6 more contributorsHide 6 contributors
Maintainer since 0.1.0 (2016)
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 0.10.0Latest2024-04-12 · current release · diff ↗ ·
removed 1 export
extract.pheno.csvadded 2 exports
mr_mvivwme, mr_clr - 0.9.0
- 0.8.0
- RR 4.3.0 released · 2023-04-21
- 0.7.0
- RR 4.2.0 released · 2022-04-22
- 0.6.0
- RR 4.1.0 released · 2021-05-18
- 0.5.12021-04-16 · diff ↗
- 0.5.02020-09-30 · diff ↗ ·
added 6 exports
mr_forest, mr_loo, mr_funnel, mr_mvmedian, mr_mvlasso, mr_lasso - 0.4.32020-08-11 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 0.4.22020-02-25 · diff ↗
Show 10 earlier eventsHide 10 earlier events
Package metadata
- First published
- 2016-08-31
- Total releases
- 15 / 10 yrs
- License
- GPL-2 | GPL-3 OSI
- Minimum R
- ≥ 3.0.1
- Download size
- 619 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("MendelianRandomization")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.