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

Details

This is used by some of the internal nlmixr routines, for example the low level nlme estimation with nlmixr. With the nlmixr functions you should use `linCmt()` instead. It is documented at https://nlmixrdevelopment.github.io/RxODE/articles/RxODE-model-types.html#solved-compartment-models