MyNixOS website logo
Description

Use 'nlmixr2' to Interact with Open Source and Commercial Software.

Run other estimation and simulation software via the 'nlmixr2' (Fidler et al (2019) <doi:10.1002/psp4.12445>) interface including 'PKNCA', 'NONMEM' and 'Monolix'. While not required, you can get/install the 'lixoftConnectors' package in the 'Monolix' installation, as described at the following url <https://monolix.lixoft.com/monolix-api/lixoftconnectors_installation/>. When 'lixoftConnectors' is available, 'Monolix' can be run directly instead of setting up command line usage.

babelmixr2

R-CMD-check CRANversion CRAN totaldownloads CRAN totaldownloads Codecov testcoverage CodeFactor r-universe

The goal of babelmixr2 is to convert nlmixr2 syntax to other commonly used tools.

Installation

You can install the released version of babelmixr2 from CRAN with:

install.packages("babelmixr2")

You can install from r-universe by:

# Download and install babelmixr2 in R
install.packages('babelmixr2',
                 repos = c(
                   nlmixr2 = 'https://nlmixr2.r-universe.dev',
                   CRAN = 'https://cloud.r-project.org'))

Otherwise you can always install from GitHub:

What you can do with babelmixr2

Babelmixr2 can help you by:

  • Running your nlmixr2 model in a commercial nonlinear mixed effects modeling tool like NONMEM or Monolix

  • Convert your NONMEM model to a nlmixr2 model (in conjunction with nonmem2rx)

  • Calculate scaling factors and automatically add initial conditions based on non-compartmental analysis (using PKNCA)

Monolix Setup

While not required, you can get/install the R ‘lixoftConnectors’ package in the ‘Monolix’ installation, as described at the following url https://monolix.lixoft.com/monolix-api/lixoftconnectors_installation/. When ‘lixoftConnectors’ is available, R can run ‘Monolix’ directly instead of using a command line.

Example

After installed, if you use the standard interface, you can obtain new initial estimates with PKNCA:

mod <-
  nlmixr2(
    nlmixrFun, nlmmixrData, est = "pknca",
    control = pkncaControl(concu = "ng/mL", doseu = "mg", timeu = "hr", volumeu = "L")
  )

or, you can convert to Monolix with

mod <- nlmixr(nlmixrFun, nlmmixrData, est="monolix")

or, you can convert to NONMEM with

mod <- nlmixr(nlmixrFun, nlmmixrData, est="nonmem")
Metadata

Version

0.1.2

License

Unknown

Platforms (75)

    Darwin
    FreeBSD 13
    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-freebsd13
  • 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-freebsd13
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows