Learn R Programming

invivoPKfit (version 2.0.1)

cp_2comp: Analytical 2-compartment model

Description

Calculates plasma concentration according to the analytical solution for the 2-compartment model.

Usage

cp_2comp(params, time, dose, route, medium = "plasma")

Value

A vector of blood or plasma concentration values (mass chemical/volume media) corresponding to each value in time

Arguments

params

A named numeric vector of parameter values. See Details for requirements.

time

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.

dose

A numeric vector of doses, reflecting single bolus doses administered at time 0. Must be same length as other arguments, or length 1.

route

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.

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 other arguments, or length 1.

Author

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