MyNixOS website logo
Description

Assembling Data Sets for Non-Linear Mixed Effects Modeling.

To Simplify the time consuming and error prone task of assembling complex data sets for non-linear mixed effects modeling. Users are able to select from different absorption processes such as zero and first order, or a combination of both. Furthermore, data sets containing data from several entities, responses, and covariates can be simultaneously assembled.

puzzle

The goal of puzzle is assembling pharmacometric ready data sets from tabulated files.

Installation

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

install.packages("puzzle")

or download the development version from Github:

devtools::install_github("syneoshealth/puzzle")

Example

This is a basic example which shows you how to solve a common problem:

library(puzzle)
nm = list(pk = list(parent=as.data.frame(puzzle::df_pk_start)),
dose=as.data.frame(puzzle::df_dose_start),
cov=as.data.frame(puzzle::df_cov_start))
df = puzzle(directory=file.path(getwd()),
        order=c(0),
        pk=list(data=nm$pk),
        dose=list(data=nm$dose),
        cov=list(data=nm$cov),
        username = "Mario Gonzalez Sales")
#> Automatic coercion to numeric for CMT
#> 1=parent
#> Automatic coercion to numeric for SEX
#> 0=F
#> 1=M
#> Assembling date and time: 2019-10-30 21:46:58
#> Time zone: Europe/Paris
#> Number of individuals: 2
#> Number of observations: 12
#> Dose levels: "100", "200"
#> This data set was assembled by Mario Gonzalez Sales

A portion of the pharmacometrics ready data set obtained with the code showed above is presented below:

C ID TIME TAD AMT CMT EVID DV LDV MDV AGE SEX
1 0.0 0.0 100 1 1 NA NA 1 77 1
1 0.0 0.0 NA 1 0 0.0 NA 0 77 1
1 1.0 1.0 NA 1 0 10.8 2.3795461 0 77 1
1 4.0 4.0 NA 1 0 7.6 2.0281482 0 77 1
1 12.0 12.0 NA 1 0 2.3 0.8329091 0 77 1
1 24.0 0.0 200 1 1 NA NA 1 77 1
1 24.0 0.0 NA 1 0 0.0 NA 0 77 1
1 25.0 1.0 NA 1 0 24.2 3.1863526 0 77 1
2 0.0 0.0 100 1 1 NA NA 1 82 0
2 0.0 0.0 NA 1 0 0.0 NA 0 82 0
2 0.9 0.9 NA 1 0 7.3 1.9878743 0 82 0
2 3.8 3.8 NA 1 0 4.0 1.3862944 0 82 0
2 12.2 12.2 NA 1 0 1.1 0.0953102 0 82 0
2 24.0 0.0 200 1 1 NA NA 1 82 0
2 24.0 0.0 NA 1 0 0.0 NA 0 82 0
2 25.1 1.1 NA 1 0 14.1 2.6461748 0 82 0
Metadata

Version

0.0.1

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