cp_2comp_dt {invivoPKfit} | R Documentation |
Time derivative of analytical 2-compartment model
Description
Calculates the time derivative (instantaneous rate of change) of plasma concentration according to the analytical solution for the 2-compartment model.
Usage
cp_2comp_dt(params, time, dose, route, medium)
Arguments
params |
A named list of parameter values including the following:
For oral administration ('route include:
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. |
time |
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. |
dose |
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. |
route |
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. |
medium |
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. |
Details
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.
Value
A vector of instantaneous rates of change of plasma concentration
values (mg/L/time) corresponding to each value in time
Author(s)
Caroline Ring, John Wambaugh
See Also
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()