Learn R Programming

pkr (version 0.1.3)

Pharmacokinetics in R

Description

Conduct a noncompartmental analysis as closely as possible to the most widely used commercial software. Some features are 1) CDISC SDTM terms 2) Automatic slope selection with the same criterion of WinNonlin(R) 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

283

Version

0.1.3

License

GPL-3

Maintainer

Last Published

June 11th, 2022

Functions in pkr (0.1.3)

LinAUC

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

Get the Slope of regression log(y) ~ x
conv.pp

Convert intermeidate NCA result to adequate unit.
Subset

Internal Functions
NCA

Noncompartmental analysis for a dataset with multiple subjects
NCA0

NCA of SDTM data for single subject
IntAUC

Calculate interval AUC
Round

Round Half Away from Zero
Interpol

Interpolate y value
rNCA

Do NCA for review
plotPK

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

NCA Report Configuation Table
readPC

Read PC domain files
readEX

Read EX domain files
pkr-package

Pharmacokinetics in R
BestSlope

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

Internal Functions
IndiNCA

Noncompartmental Analysis for an Individual
loadEXPC

Load EX and PC domain files in folders
pdfNCA

NCA output to pdf file
Unit

Disply CDISC standard units and multiplied factor of NCA results
sNCA

Simplest NCA
rtfNCA

NCA output to rtf file
foreNCA

Forest plot to compare NCA results
tblNCA

Table output NCA
combXPT

Combine XPT files
txtNCA

Text output of NCA for one subject
plotFit

Plot best fit slope
LogAUC

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

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

Internal Functions