PKNCA

Perform Pharmacokinetic Noncompartmental Analysis in R

PKNCA computes the standard set of pharmacokinetic (PK) noncompartmental analysis (NCA) parameters and summarizes them for reporting. It has been cross-validated against Phoenix WinNonlin and Pumas, and it is free and open source under the AGPL-3 license.

Get Started   Function Reference   Source on GitHub

Install

# Released version from CRAN
install.packages("PKNCA")

# Development version from GitHub
# install.packages("remotes")
remotes::install_github("humanpred/pknca")

A typical analysis

A PKNCA analysis follows a short pipeline: wrap the concentration-time data, wrap the dosing data, combine them, then run the calculations.

library(PKNCA)

# 1. Concentration-time data
my_conc <- PKNCAconc(d_conc, conc ~ time | subject)

# 2. Dosing data
my_dose <- PKNCAdose(d_dose, dose ~ time | subject)

# 3. Combine (intervals are auto-generated from the dose times)
my_data <- PKNCAdata(my_conc, my_dose)

# 4. Calculate the NCA parameters
my_results <- pk.nca(my_data)

# 5. Summarize
summary(my_results)

See the User Guide for a full walkthrough, or the Function Reference for details on every function and parameter.