PKexpr: Expressions for PK models with linear elimination

Description Usage Arguments Value Examples

View source: R/PKPDmodels.R

Description

Return a formula for the PK model with linear elimination according to the number of compartments, the administration form and the dosage pattern.

Usage

1
2
  PKexpr(admin = c("bolus", "infusion", "oral"),
    dosage = c("sd", "md", "ss"), subst = list(), cpt = 1L)

Arguments

admin

form of administration of the drug, one of "bolus", "infusion" or "oral". Defaults to "bolus".

dosage

form of dosage, one of "sd" (single dose), "md" (multiple, equally-spaced doses) and "ss" (steady-state). Defaults to "sd".

subst

a list of formulas of substitutions to perform

cpt

scalar integer - the number of model compartments.

Value

a formula

Examples

1
2
## single-dose oral administration
PKexpr("oral", "sd")

Example output

~(dose/V) * (ka/(ka - k)) * (exp(-k * t) - exp(-ka * t))
<environment: 0x2666da8>

PKPDmodels documentation built on May 1, 2019, 7:59 p.m.