
Convert double absorption to sequential delays
Source:R/convertAbsSequential.R
convertAbsSequential.RdReparameterizes a double-absorption model so the second path's delay starts after the first path's zero-order duration, matching Monolix's "sequential" double-absorption models. Only valid when the first path absorbs zero-order; raises an error otherwise.
Usage
convertAbsSequential(
ui,
central = "central",
depot = "depot",
depot2 = "depot2",
transit2 = "transitB",
ktr2 = "ktrB",
mtt2 = "Mtt2"
)Arguments
- ui
The model as a function (or something convertible to an rxUi object)
- central
central compartment name
- depot
depot compartment name
- depot2
name of the second depot compartment
- transit2
transit-compartment prefix of the second path
- ktr2
transit rate variable of the second path
- mtt2
mean transit time variable of the second path
Details
The second delay is rewritten as one of the Monolix sequential
parameterizations, depending on how it is expressed and whether the
first path also has a lag time (Tlag1):
lag time:
Tlag2 = Tk01(orTlag2 = Tlag1 + Tk01)no delay: a lag time is added and tied the same way
transit chain: converted to
Mtt2(seeconvertTransitMtt()), thenMtt2 = Tk01 + diffMtt2(orMtt2 = Tlag1 + Tk01 + diffMtt2)
See also
Other Absorption building blocks:
addDepot(),
addSecondAbsorption(),
addTransit(),
addTransitAnalytic(),
addWeibullAbs(),
addZeroOrderAbs(),
convertAbsForceLongerDelay(),
convertTransitMtt(),
removeDepot(),
removeTransit(),
removeTransitAnalytic(),
removeZeroOrderAbs()