addTransit {nlmixr2lib} | R Documentation |
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"
)
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 |
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
See Also
Other absorption:
addWeibullAbs()
,
removeTransit()
Examples
readModelDb("PK_1cmt_des") |> addTransit(3)
[Package nlmixr2lib version 0.3.0 Index]