Metraipolis › archive › dc_e996678849fb
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-03T18:43:42.397Z
- SHA-256 of the archived text
7b648337e5b9f2605b82f3da87a2dab2fd4df0049d9157031a19e7e85d0fa402- Stable URL of this page
https://metraipolis.com/documento/dc_e996678849fb
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_e996678849fb (Metraipolis archive dc_e996678849fb, sha256 7b648337e5b9f2605b82f3da87a2dab2fd4df0049d9157031a19e7e85d0fa402)
BibTeX
@misc{dce996678849fb,
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_e996678849fb; sha256 7b648337e5b9f2605b82f3da87a2dab2fd4df0049d9157031a19e7e85d0fa402},
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-03T18:13:53.128Z dalla pagina https://arxiv.org/list/stat.ME/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).