sNCA: Simplest NCA

View source: R/sNCA.R

sNCAR Documentation

Simplest NCA

Description

This is the work-horse function for NCA.

Usage

sNCA(x, y, dose = 0, adm = "Extravascular", dur = 0, doseUnit = "mg", timeUnit = "h",
     concUnit = "ug/L", iAUC = "", down = "Linear", R2ADJ = 0.7, MW = 0, SS = FALSE,
     tau = NA, unitTau = "h", Keystring="", excludeDelta = 1, UsePoints = NULL)

Arguments

x

usually time, a vector

y

usually concentration, a vector

dose

given amount, not amount per body weight, a scalar

adm

one of "Bolus" or "Infusion" or "Extravascular" to indicate drug administration mode

dur

duration of infusion, a scalar

doseUnit

unit of dose

timeUnit

unit of time

concUnit

unit of concentration

iAUC

interval AUCs to calculate: a data.frame with the columns Name, Start and End. See IntAUC for the rules; an interval may start and end after the last sample when LAMZ is available.

down

either of "Linear" or "Log" to indicate the way to calculate AUC and AUMC

R2ADJ

Minimum adjusted R-square value to determine terminal slope automatically

MW

molecular weight of the drug

SS

if steady-state, this should be TRUE and tau must be given. AUCTAU (AUC over one dosing interval, 0 to tau) is then used instead of AUCIFO (AUCinf) for the calculation of Vz (VZFO, VZO) and CL (CLFO, CLO), and AUCTAU and CAVG are added to the result. CMAX and TMAX are then taken from the samples within the dosing interval, and without a sample at time 0 the lowest concentration observed within the dosing interval is inserted there (0 after a single dose). The MRT to infinity (MRTEVIFO, MRTEVIFP, MRTIVIFO, MRTIVIFP) is (AUMC from 0 to tau + tau * (AUCinf - AUCTAU)) / AUCTAU, and Vdss (VSSO, VSSP) is that MRT times CLO. The Pred-based twins of Vz and CL (VZFP, CLFP, VZP, CLP) are NA at steady state. Up to version 0.8.4 the MRT to infinity and VSSP were NA at steady state and VSSO was MRTIVLST times CLO. Up to version 0.8.3 AUCLST (AUClast) was used in place of AUCTAU, which is only right when the last sample falls exactly at tau.

tau

dosing interval, a positive scalar in the unit of unitTau. Required when SS = TRUE; ignored, with a warning, otherwise.

unitTau

unit of tau: "h" (default), "min", "s", "d", "wk" or their common spellings. tau is converted into timeUnit before use.

Keystring

a text string to be shown at the plot in case of manual selection of terminal slope

excludeDelta

Improvement of R2ADJ larger than this value could exclude the last point. Default value 1 is for the compatibility with other software.

UsePoints

Indices of points to calculate terminal slope. Vaules of use points should not be zero. Use only when automatic determination is not satisfactory. If this is used, R2ADJ option is ignored.

Details

This replaced previous IndiNCA. Author recommends to use excludeDelta option with about 0.3.

Value

CMAX

maximum concentration, Cmax; within the dosing interval (0 to tau) when SS = TRUE

CMAXD

dose normalized Cmax, CMAX / Dose, Cmax / Dose

TMAX

time of maximum concentration, Tmax; within the dosing interval (0 to tau) when SS = TRUE

TLAG

time to observe the first non-zero concentration, for extravascular administration only

CLST

last positive concentration observed, Clast

CLSTP

last positive concentration predicted, Clast_pred

TLST

time of last positive concentration, Tlast

LAMZHL

half-life by lambda z, ln(2)/LAMZ

LAMZ

lambda_z negative of the best-fit terminal slope

LAMZLL

earliest time for LAMZ

LAMZUL

last time for LAMZ

LAMZNPT

number of points for LAMZ

CORRXY

correlation of log(concentration) and time

R2

R-squared

R2ADJ

R-squared adjusted

C0

back extrapolated concentration at time 0, for intravascular bolus administration only

AUCLST

AUC from 0 to TLST

AUCALL

AUC using all the given points, including trailing zero concentrations

AUCIFO

AUC infinity observed

AUCIFOD

AUCIFO / Dose

AUCIFP

AUC infinity predicted using CLSTP instead of CLST

AUCIFPD

AUCIFP / Dose

AUCPEO

AUC % extrapolation observed

AUCPEP

AUC % extrapolated for AUCIFP

AUCPBEO

AUC % back extrapolation observed, for bolus IV administration only

AUCPBEP

AUC % back extrapolation predicted with AUCIFP, for bolus IV administration only

AUMCLST

AUMC to the TLST

AUMCIFO

AUMC infinity observed using CLST

AUMCIFP

AUMC infinity determined by CLSTP

AUMCPEO

AUMC % extrapolated observed

AUMCPEP

AUMC % extrapolated predicted

AUCTAU

AUC over one dosing interval, from 0 to tau, calculated like an interval AUC of iAUC (see IntAUC): interpolated according to down when tau falls between two samples, extrapolated with LAMZ when tau is beyond the last sample. With SS = TRUE only

CAVG

average concentration over the dosing interval at steady state, AUCTAU / tau. With SS = TRUE only

MRTIVLST

mean residence time (MRT) to TLST, for intravascular administration

MRTIVIFO

mean residence time (MRT) infinity using CLST, for intravascular administration. When SS = TRUE, (AUMC from 0 to tau + tau * (AUCIFO - AUCTAU)) / AUCTAU, less half the infusion duration

MRTIVIFP

mean residence time (MRT) infinity using CLSTP, for intravascular administration. When SS = TRUE, (AUMC from 0 to tau + tau * (AUCIFP - AUCTAU)) / AUCTAU, less half the infusion duration

MRTEVLST

mean residence time (MRT) to TLST, for extravascular administration

MRTEVIFO

mean residence time (MRT) infinity using CLST, for extravascular administration. When SS = TRUE, (AUMC from 0 to tau + tau * (AUCIFO - AUCTAU)) / AUCTAU

MRTEVIFP

mean residence time (MRT) infinity using CLSTP, for extravascular administration. When SS = TRUE, (AUMC from 0 to tau + tau * (AUCIFP - AUCTAU)) / AUCTAU

VZO

volume of distribution determined by LAMZ and AUCIFO (AUCTAU when SS = TRUE), for intravascular administration

VZP

volume of distribution determined by LAMZ and AUCIFP, for intravascular administration; NA when SS = TRUE

VZFO

VZO for extravascular administration, VZO/F, F is bioavailability

VZFP

VZP for extravascular administration, VZP/F, F is bioavailability; NA when SS = TRUE

CLO

clearance using AUCIFO (dose / AUCTAU when SS = TRUE), for intravascular administration

CLP

clearance using AUCIFP, for intravascular administration; NA when SS = TRUE

CLFO

CLO for extravascular administration, CLO/F, F is bioavailability

CLFP

CLP for extravascular administration, CLP/F, F is bioavailability; NA when SS = TRUE

VSSO

volume of distribution at steady state using CLST, MRTIVIFO times CLO, for intravascular administration only

VSSP

volume of distribution at steady state using CLSTP, MRTIVIFP times CLP (times CLO when SS = TRUE), for intravascular administration only

units

An attribute to show units

UsedPoints

An attribute to show indices of used points

Author(s)

Kyun-Seop Bae <k@acr.kr>

References

Gabrielsson J, Weiner D. Pharmacokinetic and Pharmacodynamic Data Analysis - Concepts and Applications. 5th ed. 2016.

See Also

help, tblNCA

Examples

# For one subject
x = Theoph[Theoph$Subject=="1","Time"]
y = Theoph[Theoph$Subject=="1","conc"]

sNCA(x, y, dose=320, doseUnit="mg", concUnit="mg/L", timeUnit="h")
sNCA(x, y, dose=320, concUnit="mg/L")

iAUC = data.frame(Name=c("AUC[0-12h]","AUC[0-24h]"), Start=c(0,0), End=c(12,24))
sNCA(x, y, dose=320, doseUnit="mg", concUnit="mg/L", timeUnit="h", iAUC=iAUC)

MW = 180.164 # Molecular weight of theophylline

sNCA(x, y/MW, dose=320, doseUnit="mg", concUnit="mmol/L", timeUnit="h")
sNCA(x, y/MW, dose=320, doseUnit="mg", concUnit="mmol/L", timeUnit="h", MW=MW)
sNCA(x, y, dose=320/MW, doseUnit="mmol", concUnit="mg/L", timeUnit="h", MW=MW)
sNCA(x, y/MW, dose=320/MW, doseUnit="mmol", concUnit="mmol/L", timeUnit="h", MW=MW)

sNCA(x, y/MW, dose=320/MW, doseUnit="mmol", concUnit="mmol/L", timeUnit="h", MW=MW)
sNCA(x, y/MW, doseUnit="mmol", concUnit="mmol/L", timeUnit="h", MW=MW)
sNCA(x, y/MW, dose=as.numeric(NA), doseUnit="mmol", concUnit="mmol/L", timeUnit="h", 
     MW=MW)

sNCA(x, y, dose=320, concUnit="mg/L", timeUnit="hr")
sNCA(x*60, y, dose=320, concUnit="mg/L", timeUnit="min")

# Steady state: one dosing interval of a q12h regimen, sampled from the pre-dose trough to
# the next dose. tau is the dosing interval; AUCTAU, CAVG, CLFO and VZFO are derived over it.
xs = c(0, 1, 2, 4, 8, 12)
ys = c(2, 6, 10, 8, 4, 2)
sNCA(xs, ys, dose=100, concUnit="mg/L", SS=TRUE, tau=12)
sNCA(xs, ys, dose=100, concUnit="mg/L", SS=TRUE, tau=0.5, unitTau="d") # the same result

NonCompart documentation built on Nov. 15, 2026, 5:07 p.m.