Learn R Programming

tci (version 0.2.0)

infer_pkfn: Identify pkfn from parameter names

Description

Identify structural PK model function (i.e., `pkfn`) from parameter names. Models available are 1-, 2-, and 3-compartment mammillary models, or 3-compartment with an effect site, corresponding to functions `pkmod1cpt`, `pkmod2cpt`, `pkmod3cpt`, and `pkmod3cptm`, respectively.

Usage

infer_pkfn(parnms)

Value

Returns one of the following functions: `pkmod1cpt`, `pkmod2cpt`, `pkmod3cpt`, or `pkmod3cptm` based on the parameter names entered.

Arguments

parnms

Vector of parameter names.

Examples

Run this code
# 1-compartment
infer_pkfn(c("CL","V"))
infer_pkfn(c("Cl","v1"))
# 2-compartment
infer_pkfn(c("CL","v","v2","q"))
# 3-compartment
infer_pkfn(c("CL","v","v2","q","Q2","V3"))
# 3-compartment with effect-site
infer_pkfn(c("CL","v","v2","q","Q2","V3","ke0"))

Run the code above in your browser using DataLab