Administer a infusion (with rate being fixed) inside a rxode2 model
Arguments
- amt
Numeric dose amount (for dose events) or
0for observations. Whenrate > 0this is interpreted as the total infusion amount and the infusion duration isamt / rate.- rate
Numeric infusion rate.
0Bolus dose (default).
> 0Fixed infusion rate; duration =
amt / rate.-1Rate defined by the model (
rate_<cmt>variable).-2Duration defined by the model (
dur_<cmt>variable).
- cmt
Integer compartment number (1-based) to which the dose is applied. Default is 1
- ii
Numeric inter-dose interval. Used together with
addlto schedule repeat doses attime,time + ii,time + 2*ii, ...,time + addl*ii. Also required whenss > 0. Default 0- addl
Integer number of additional doses beyond the first. The total number of doses pushed is
addl + 1, spacediiapart. Each dose is pushed as a standalone event (not as a periodic schedule in the event table).- ss
Integer steady-state flag applied to the first dose only (
addlrepetitions always usess = 0).0No steady-state (default).
1Steady-state additive: add SS solution to current state.
2Steady-state replace: replace current state with SS solution.
Value
This function is only meaningful inside an rxode2 model; it
returns NULL invisibly if called from R directly (after signaling
an error).
Details
Behavior inside a model
infuse() is evaluated at every output time point (when the solver is
exactly at a scheduled event time). The pushed event is inserted into
the individual's event timeline and the solver visits it now or at the
specified future time.
The number of events that may be pushed per individual is limited by
the maxExtra argument of rxSolve(). When maxExtra = 0
(the default) there is no limit. Exceeding the limit causes an
error.
Past-time pushes (where time < t) are silently ignored and counted;
a warning is issued after solving.
