concentrations from a linear compartment model by close-form solutions

lin_cmt(
  obs_time,
  dose_time,
  dose,
  Tinf,
  params,
  oral,
  infusion,
  ncmt,
  parameterization
)

Arguments

obs_time

times at which an observation is desired

dose_time

times at which doses are given

dose

a vector of doses

Tinf

a vector of infusion duration

params

model-appropriate parameters per parameterization

oral

logical, whether oral absorption is true

infusion

logical, whether infusion is true

ncmt

number of compartments

parameterization

type of parameterization, 1=clearance/volume, 2=micro-constants

Value

calculated concentrations