powered by
To add transit compartments to the model
addTransit( ui, ntransit, central = "central", depot = "depot", transit = "transit", ktr = "ktr", ka = "ka" )
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
The model as a function
the number of transit compartments to be added
central compartment name
depot compartment name
the transit compartment prefix
the parameter name for the transit compartment rate
absorption rate parameter name
Other absorption: addWeibullAbs(), removeTransit()
addWeibullAbs()
removeTransit()
readModelDb("PK_1cmt_des") |> addTransit(3)
Run the code above in your browser using DataLab