Calculates plasma concentration according to the analytical solution for the 2-compartment model.
cp_2comp(params, time, dose, route, medium = "plasma")
A vector of blood or plasma concentration values (mass chemical/volume media) corresponding to each
value in time
A named numeric vector of parameter values. See Details for requirements.
A numeric vector of times, reflecting the time points when concentration is measured after the corresponding single bolus dose. Must be same length as other arguments, or length 1.
A numeric vector of doses, reflecting single bolus doses administered at time 0. Must be same length as other arguments, or length 1.
A character vector, reflecting the route of administration of
each single bolus dose: 'oral'
or 'iv'
. 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 other arguments, or length 1.
Caroline Ring, John Wambaugh
Other built-in model functions:
auc_1comp()
,
auc_1comp_cl()
,
auc_2comp()
,
auc_flat()
,
cp_1comp()
,
cp_1comp_cl()
,
cp_2comp_dt()
,
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_dt()
,
get_params_2comp()
,
get_starts_2comp()
,
tkstats_2comp()
,
transformed_params_2comp()
Other model concentration functions:
cp_1comp()
,
cp_1comp_cl()
,
cp_flat()