OneSampleMR: One Sample Mendelian Randomization and Instrumental Variable Analyses

Useful functions for one-sample (individual level data) Mendelian randomization and instrumental variable analyses. The package includes implementations of; the Sanderson and Windmeijer (2016) <doi:10.1016/j.jeconom.2015.06.004> conditional F-statistic, the multiplicative structural mean model Hernán and Robins (2006) <doi:10.1097/01.ede.0000222409.00878.37>, and two-stage predictor substitution and two-stage residual inclusion estimators explained by Terza et al. (2008) <doi:10.1016/j.jhealeco.2007.09.009>.

Version: 0.1.0
Depends: R (≥ 3.6.0)
Imports: Formula, gmm, ivreg, lmtest, msm
Suggests: AER, haven, ivtools, knitr, lfe, rmarkdown, testthat (≥ 3.0.0)
Published: 2021-11-12
Author: Tom Palmer ORCID iD [aut, cre], Wes Spiller ORCID iD [aut], Eleanor Sanderson ORCID iD [aut]
Maintainer: Tom Palmer <remlapmot at>
License: GPL (≥ 3)
NeedsCompilation: no
Materials: README NEWS
CRAN checks: OneSampleMR results


Reference manual: OneSampleMR.pdf
Vignettes: Comparison fits of the multiplicative structural mean model
Comparison of conditional F-statistics


Package source: OneSampleMR_0.1.0.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): OneSampleMR_0.1.0.tgz, r-release (x86_64): OneSampleMR_0.1.0.tgz, r-oldrel: OneSampleMR_0.1.0.tgz


Please use the canonical form to link to this page.