Calculates the time derivative (instantaneous rate of change) of plasma concentration according to the analytical solution for the 2-compartment model.
cp_2comp_dt(params, time, dose, route, medium)
A vector of instantaneous rates of change of plasma concentration
values (mg/L/time) corresponding to each value in time
A named list of parameter values including the following:
Rate at which compound moves from central to peripheral compartment, 1/h.
Rate at which compound moves from peripheral to central compartment, 1/h.
Elimination rate, 1/h.
Apparent volume of central compartment, L/kg BW. Or see below for "Fgutabs_V1"
For oral administration (`route include:
Oral bioavailability, unitless fraction. Or see below for "Fgutabs_V1"
Rate of absorption from gut, 1/h.
For oral administration, in lieu of "V1" and "Fgutabs", you may instead provide "Fgutabs_V1", the ratio of Fgutabs to V1 (1/L). This is an alternate parameterization for situations where "Fgutabs" and "V1" are not identifiable separately (i.e. when oral data are available, but IV data are not). If "Fgutabs" and "V1" are provided, then "Fgutabs_V1" will not be used.
A numeric vector of times in hours, reflecting the time points when concentration is measured after the corresponding single bolus dose. Must be same length as `dose` and `route`, or length 1.
A numeric vector of doses in mg/kg, reflecting single bolus doses administered at time 0. Must be same length as `time` and `route`, or length 1.
A character vector, reflecting the route of administration of each single bolus dose. Currently, only "iv" and "oral" are supported. Must be same length as `time` and `dose`, or length 1.
A character vector reflecting the medium in which each resulting concentration is to be calculated: "blood" or "plasma". Default is "plasma". Must be same length as `time` and `dose`, or length 1.
Caroline Ring, John Wambaugh
This function is used by [postprocess_data()] to determine the time of peak concentration for the 2-compartment model, by locating the point where the time derivative of concentration crosses zero.
Other built-in model functions:
auc_1comp()
,
auc_1comp_cl()
,
auc_2comp()
,
auc_flat()
,
cp_1comp()
,
cp_1comp_cl()
,
cp_2comp()
,
cp_flat()
,
get_params_1comp()
,
get_params_1comp_cl()
,
get_params_1comp_fup()
,
get_params_2comp()
,
get_params_flat()
,
get_starts_1comp()
,
get_starts_1comp_cl()
,
get_starts_1comp_fup()
,
get_starts_2comp()
,
get_starts_flat()
,
tkstats_2comp()
,
transformed_params_2comp()
Other 2-compartment model functions:
auc_2comp()
,
cp_2comp()
,
get_params_2comp()
,
get_starts_2comp()
,
tkstats_2comp()
,
transformed_params_2comp()