
Split infusion doses across compartments inside an rxode2 model
Source:R/splitBolus.R
splitInfusion.RdsplitInfusion() is a model-only directive that rewrites infusion
doses aimed at cmt into parallel infusion doses to the target
compartments. Each target compartment receives the full original
amount (or rate); use compartment properties like f() to scale the
split (for example a Monolix-style double-absorption F1/1-F1
dose apportionment). The source-compartment infusion is replaced,
not retained.
Both data-driven infusions (RATE or DUR records) and modeled
rate()/dur() infusions are split. The source and every start
or stop record of the infusion is re-targeted, so the pairings the
solver relies on are preserved.
Unlike splitBolus(), this rewrite applies at etTrans()
translation time only; doses pushed while solving with evid_()
are not split.
The source compartment may also appear in the target list, but the
target compartments in ... must be unique.