Learn R Programming

⚠️There's a newer version (3.5.1) of this package.Take me there.

dfpk

The dfpk R package provides an interface to fit Bayesian generalized (non-)linear mixed models using Stan, which is a C++ package for obtaining Bayesian inference using the No-U-turn sampler (see http://mc-stan.org/).

Description

dfpk package includes methods involving PK measures in the dose allocation process during a Phase I clinical trials. These methods enter PK in the dose finding designs in different ways, including covariates models, dependent variable or hierarchical models. This package provides functions to generate scenarios, and to run simulations which their objective is to determine the maximum tolerated dose (MTD) and to investigate PK of a drug or a combination of drugs.

Installation

Establish Version

A latest version of the package dfpk is available on CRAN and can be loaded via

install.packages("dfpk")
library(dfpk) 

Development Version

To install the dfpk package from GitHub, first make sure that you can install the rstan package and C++ toolchain by following these instructions. The program Rtools (available on https://cran.r-project.org/bin/windows/Rtools/) comes with a C++ compiler for Windows. On OS-X, you should install Xcode. Once rstan is successfully installed, you can install dfpk from GitHub using the devtools package by executing the following in R:

if (!require(devtools)){
  install.packages("devtools") 
  library(devtools) 
}

install_github("artemis-toumazi/dfpk")

If installation fails, please let us know by filing an issue.

Details on formula syntax, families and link functions, as well as prior distributions can be found on the help page of the dfpk function:

help(dfpk) 

FAQ

Can I avoid compiling models?

Unfortunately, fitting your model with dfpk, there is currently no way to avoid the compilation.

What is the best way to ask a question or propose a new feature?

You can either open an issue on github or write me an email to (artemis.toumazi@gmail.com).

Copy Link

Version

Install

install.packages('dfpk')

Monthly Downloads

40

Version

2.0.0

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Artemis Toumazi

Last Published

December 15th, 2016

Functions in dfpk (2.0.0)

pkcrm

Dose finding method PKCRM.
dfpk-package

A Bayesian Dose-Finding Design using Pharmacokinetics(PK) for Phase I Clinical Trials.
pkpop

Dose finding method PKPOP.
AUC_estim

Estimation of the area under the curve, AUC.
pk.estim

The pharmacokinetic's (PK) measure of exposure.
pkcov

Dose finding method PKCOV.
dtox

Dose finding method DTOX.
nextDose

Next dose determination of a phase I clinical trial.
invlogit

Inverse logistic functions.
nsim

Simulate one or more Phase I clinical trial(s) using the PK measure in the dose finding design.
pktox

Dose finding method PKTOX.
plotConc,scen-method

The graphical representation of the drug's concentration in the plasma at time t after the drug administration.
plotConc

The generic function of plot.conc.
plotDose

The generic function of the plot.dose.
scenarios

Generate new data from a scenarios.
plotDose,dosefinding-method

The graphical representation of dose escalation for each patient in the trial.
stan_f

The data stan_f includes all the Stan models that dfpk package uses.
show-methods

S4 Methods for Function show