Learn R Programming

invivoPKfit (version 2.0.1)

cp_2comp_dt: 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)

Value

A vector of instantaneous rates of change of plasma concentration values (mg/L/time) corresponding to each value in time

Arguments

params

A named list of parameter values including the following:

k12

Rate at which compound moves from central to peripheral compartment, 1/h.

k21

Rate at which compound moves from peripheral to central compartment, 1/h.

kelim

Elimination rate, 1/h.

V1

Apparent volume of central compartment, L/kg BW. Or see below for "Fgutabs_V1"

For oral administration (`route include:

Fgutabs

Oral bioavailability, unitless fraction. Or see below for "Fgutabs_V1"

kgutabs

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.

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.

Author

Caroline Ring, John Wambaugh

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.

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()