MyNixOS website logo
Description

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>.

OneSampleMR: Useful functions for one-sample Mendelian randomization and instrumental variable analyses

R-CMD-check CRAN status RStudio_CRAN_mirror_downloads_badge Codecov test coverage r-universe

Useful functions for one sample, individual level data, Mendelian randomization / instrumental variable analyses, including implementations of:

OneSampleMR was included in the R Views November 2021 "Top 40" New CRAN Packages here!

Installation

Released version

Install the package from CRAN using

install.packages("OneSampleMR")

To check for updates run

update.packages()

Issue with gmm package versions 1.6-5, 1.6-6, 1.7 on macOS

Using these old versions of the gmm package, a GNU Fortran installation was required even if the binary version of the package was installed.

The fix is to update to the current version of gmm, which is version 1.8.

If you cannot update your version of gmm then

  • The current version of GNU Fortran to install is documented here and available here
  • Note that the version of Fortran available from Homebrew will probably not work

Development version

Install the development version of the package from source from GitHub using

# install.packages("remotes") # uncomment on first run
remotes::install_github("remlapmot/OneSampleMR")

To check for and install updates to the development version run the previous command again or run

remotes::update_packages()

A binary of the development version of the package (for Windows, macOS, and Ubuntu Jammy Jellyfish) can be installed from r-universe using

install.packages('OneSampleMR', repos = c('https://remlapmot.r-universe.dev', 'https://cloud.r-project.org'))

which can be updated using

update.packages(repos = c('https://remlapmot.r-universe.dev', 'https://cloud.r-project.org'))
Metadata

Version

0.1.5

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows