lin_cmt: concentrations from a linear compartment model

View source: R/RcppManualExports.R

lin_cmtR Documentation

concentrations from a linear compartment model

Description

concentrations from a linear compartment model by close-form solutions

Usage

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

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

Value

calculated concentrations


nlmixr documentation built on March 27, 2022, 5:05 p.m.

Related to lin_cmt in nlmixr...