Diet Mendelian Randomization
Overview
Encodes several methods for performing Mendelian randomization analyses with summarized data. Similar to the 'MendelianRandomization' package, but with fewer bells and whistles, and less frequent updates. As described in Yavorska (2017) doi:10.1093/ije/dyx034 and Broadbent (2020) doi:10.12688/wellcomeopenres.16374.2.
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-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-03-10
Documentation
- Help pages
- 77 (22 internal)
- Examples that run
- 100%42 run in a plain check
- Exported functions with examples
- 92%
- Documented parameters
- 100%
- Return-value docs
- 85%
- Help pages citing references
- 27%
Downloads
Dependencies
Installing MRZero adds 74 packages (40 with compiled code, 72 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
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.2.0Latest
- 0.1.02023-08-16
- RR 4.3.0 released · 2023-04-21
Package metadata
- First published
- 2023-08-16
- Total releases
- 2 / 3 yrs
- License
- GPL-2 | GPL-3 OSI
- Minimum R
- ≥ 3.0.1
- Download size
- 123 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("MRZero")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-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.