Metraipolis › archive › dc_69fde12e72a8
One-Sample Mendelian Randomization and Instrumental Variable Analyses in R and Stata: The OneSampleMR and ivonesamplemr Packages — arXiv:2611.02887
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2611.02887
- License (as archived)
- CC0-1.0
- Archived
- 2026-11-03T11:30:23.093Z
- SHA-256 of the archived text
75ea9d532073eaf6d6bf0935778a703ef470c83f61d5e28fed5ea0c73885cf40- Stable URL of this page
https://metraipolis.com/documento/dc_69fde12e72a8
How to cite
One-Sample Mendelian Randomization and Instrumental Variable Analyses in R and Stata: The OneSampleMR and ivonesamplemr Packages — arXiv:2611.02887 — arXiv (en), https://arxiv.org/abs/2611.02887 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_69fde12e72a8 (Metraipolis archive dc_69fde12e72a8, sha256 75ea9d532073eaf6d6bf0935778a703ef470c83f61d5e28fed5ea0c73885cf40)
BibTeX
@misc{dc69fde12e72a8,
title = {One-Sample Mendelian Randomization and Instrumental Variable Analyses in R and Stata: The OneSampleMR and ivonesamplemr Packages — arXiv:2611.02887},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2611.02887},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_69fde12e72a8; sha256 75ea9d532073eaf6d6bf0935778a703ef470c83f61d5e28fed5ea0c73885cf40},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2611.02887. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Mendelian randomization (MR) uses genetic variants as instrumental variables (IVs) to estimate the causal effect of an exposure on an outcome. When individual-level data on the instruments, exposure, and outcome are available in a single sample (one-sample MR), a range of IV estimators can be used beyond the standard two-stage least squares estimator, including structural mean models (SMMs) and two-stage predictor substitu- tion (TSPS) and two-stage residual inclusion (TSRI) estimators with nonlinear second stage models. These estimators are important when the outcome is binary, where in- vestigators typically wish to report causal risk ratios or causal odds ratios. However, implementations of these estimators are scattered across software packages and are of- ten unavailable with standard errors that account for the estimation of the first stage. We describe two packages which implement these estimators: OneSampleMR for R and ivonesamplemr for Stata. Both packages fit the multiplicative and logistic SMMs and TSPS and TSRI estimators with identity, log-additive, log-multiplicative, and logit links using the generalized method of moments (GMM), so that the standard errors account for the uncertainty in both stages of estimation. OneSampleMR additionally provides the Sanderson-Windmeijer conditional F-statistic for assessing instrument strength in models with multiple exposures, and ivonesamplemr additionally provides prefix commands for moving window and within-quantile estimation for exploring nonlinear exposure-outcome relationships. We illustrate both packages using the same simulated dataset and show that they give the same estimates as each other and as existing implementations. Tema degli esploratori: statistica e scienza dei dati (elenco arXiv stat.ME, nuovi lavori del giorno). Categorie arXiv: Methodology (stat.ME) ; Applications (stat.AP); Computation (stat.CO). Pagina del lavoro: https://arxiv.org/abs/2611.02887 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-11-03T11:03:37.224Z dalla pagina https://arxiv.org/list/stat.ME/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).