Skip to content

olivierbarriere/puzzle

Repository files navigation

Overview

This package allows the user to assemble pharmacometrics ready databases from tabulated files following NONMEM convention.

Installation

You should follow these steps:

  1. Install the devtools package if you have not done so far.
install.packages("devtools")
  1. Load the devtools package.
library("devtools")
  1. Install the puzzle
install_github("syneoshealth/puzzle")
  1. Load the puzzle package
library("puzzle")

Using puzzle() to Assemble Pharmacometric Datasets

  1. Load some data
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))
  1. Run puzzle()
puzzle(directory=file.path(getwd()),
       order=1,
       pk=list(data=nm$pk), 
       dose=list(data=nm$dose), 
       cov=list(data=nm$cov),
       nm=list(name="nonmem.csv"))

The puzzle function will create a NONMEM ready dataset "nonmem.csv" from the R object nm assuming the absorption is going to be modeled using a first order absorption process (i.e. order=1).

About

Puzzling out Pharmacometric Datasets in R

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages