Learn R Programming

pkr (version 0.1.6)

Pharmacokinetics in R

Description

Conduct a noncompartmental analysis as closely as possible to the most widely used commercial software. The core noncompartmental computations are delegated to the 'NonCompart' package so that the two share a single, maintained engine. Some features are 1) CDISC SDTM terms 2) Automatic slope selection with the same criterion of WinNonlin(R), restricted by default to samples after the end of an infusion 3) Supporting both 'linear-up linear-down' and 'linear-up log-down' method 4) Interval(partial) AUCs with 'linear' or 'log' interpolation method * Reference: Gabrielsson J, Weiner D. Pharmacokinetic and Pharmacodynamic Data Analysis - Concepts and Applications. 5th ed. 2016. (ISBN:9198299107).

Copy Link

Version

Install

install.packages('pkr')

Monthly Downloads

289

Version

0.1.6

License

GPL-3

Maintainer

Kyun-Seop Bae

Last Published

July 30th, 2026

Functions in pkr (0.1.6)

loadEXPC

Load EX and PC domain files in folders
readPC

Read PC domain files
readEX

Read EX domain files
plotFit

Plot best fit slope
pdfNCA

NCA output to pdf file
pkr-package

Pharmacokinetics in R
rNCA

Do NCA for review
Unit

Disply CDISC standard units and multiplied factor of NCA results
txtNCA

Text output of NCA for one subject
plotPK

Plot concentration vs. time curve for individuals and collectively.
tblNCA

Table output NCA
LogAUC

Area Under the Curve(AUC) and Area Under the first Moment Curve(AUMC) by linear-up log-down method
Round

Round Half Away from Zero
RptCfg

NCA Report Configuation Table
sNCA

Simplest NCA
combXPT

Combine XPT files
rtfNCA

NCA output to rtf file
UT

Internal Functions
LinAUC

Area Under the Curve(AUC) and Area Under the first Moment Curve(AUMC) by linear trapezoidal method
BestSlope

Choose best fit slope for the log(y) and x regression by the criteria of adjusted R-square
AUC

Calculate Area Under the Curve (AUC) and Area Under the first Moment Curve (AUMC) in a table format
Slope

Get the Slope of regression log(y) ~ x
Subset

Internal Functions
conv.pp

Convert intermeidate NCA result to adequate unit.
BasicUtil

Internal Functions
NCA

Noncompartmental analysis for a dataset with multiple subjects
NCA0

NCA of SDTM data for single subject
IndiNCA

Noncompartmental Analysis for an Individual
foreNCA

Forest plot to compare NCA results
Interpol

Interpolate y value
IntAUC

Calculate interval AUC