Perform an NCA based on a NONMEM-style dataset
nca(
data = NULL,
dose = 100,
tau = 24,
method = c("log_linear", "log_log", "linear"),
scale = list(auc = 1, conc = 1),
dv_min = 0.001,
t_inf = NULL,
fit_samples = NULL,
weights = NULL,
extend = TRUE,
has_baseline = TRUE,
route = c("iv", "oral", "im", "sc")
)
Returns a list of three lists:
pk
Lists pk parameters.
kel
: elimination constant
t_12
: half-life
v
: distribution volume
cl
: clearance
descriptive
Lists exposure parameters.
cav_t
: the average concentration between the first observation and the last observation without extrapolating to tau
cav_tau
: the average concentration from 0 to tau
cmin
: the extrapolated concentration at time = tau
c_max_true
: only available if extend = TRUE
, the extrapolated peak concentration
c_max
: only available if extend = FALSE
, the observed maximum concentration
auc_inf
: the extrapolated AUC as time goes to infinity
auc_24
: the extrapolated AUC after 24 hours, provided no further doses are administered
auc_tau
: the extrapolated AUC at the end of the dosing interval
auc_t
: the AUC at the time of the last observation
settings
Lists dosing information.
dose
: dose quantity
tau
: dosing interval
data.frame with time and dv columns
dose amount
dosing frequency, default is 24.
`linear`, `log_linear` (default), or `log_log`
list with scaling for auc and concentration (`conc`)
minimum concentrations, lower observations will be set to this value
infusion time, defaults to 0
vector of sample indexes used in fit to calculate elimination rate, e.g. `c(3,4,5)`. If not specified (default), it will evaluate which of the last n samples shows the largest adjusted R^2 when log-transformed data is fitted using linear regression, and use those samples in the estimation of the elimination rate.
vector of weights to be used in linear regression (same size as specified concentration data), or function with concentration as argument.
perform an 'extended' NCA, i.e. for the calculation of the AUCs, back-extend to the expected true Cmax to also include that area.
does the included data include a baseline? If `FALSE`, baseline is set to zero.
administration route, `iv` (intravenous, default), `oral`, `sc` (sub-cutaneous), or `im` (intra-muscular).
data <- data.frame(time = c(0, 2, 4, 6, 8, 12, 16),
dv = c(0, 10, 14, 11, 9, 5, 1.5))
nca(data, t_inf = 2)
Run the code above in your browser using DataLab