Skip to content

Latest commit

 

History

History
60 lines (37 loc) · 1.12 KB

README.md

File metadata and controls

60 lines (37 loc) · 1.12 KB

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