Learn R Programming

nlmixr2lib (version 0.3.0)

addTransit: To add transit compartments to the model

Description

To add transit compartments to the model

Usage

addTransit(
  ui,
  ntransit,
  central = "central",
  depot = "depot",
  transit = "transit",
  ktr = "ktr",
  ka = "ka"
)

Value

a model with transit compartment added

This matches

`dose->a0->a1->abs cmt->central`

But `a0` is depot so dosing records labeled depot do not need to be changed

The abs cmt becomes the last "transit" compartment

This is simply for convenience

Arguments

ui

The model as a function

ntransit

the number of transit compartments to be added

central

central compartment name

depot

depot compartment name

transit

the transit compartment prefix

ktr

the parameter name for the transit compartment rate

ka

absorption rate parameter name

See Also

Other absorption: addWeibullAbs(), removeTransit()

Examples

Run this code
readModelDb("PK_1cmt_des") |> addTransit(3)

Run the code above in your browser using DataLab