# 21 Dosing definition

## 21.1 IQRdosing object

As discussed in section Dosing representations a dosing object for dosing events can be defined with the function IQRdosing(). As a minimum the time of the dosing events (TIME), the INPUT numbers (ADM), and the amount (AMT) must be provided as function inputs. It is also possible to specify the duration of input events (TINF; 0 for bolus inputs) or the rate of administration (RATE; cannot be defined at the same time as TINF).

For example, two dosing events at 0 and 24 h of 100 mg with a time of infusion of 2h and a lag-time of 0.5h for each event, can be defined:

dosing <- IQRdosing(TIME=c(0,24), ADM=c(1,1), AMT=c(100,100), TINF = c(2,2))

The parts of the IQRdosing object can be accessed with a “\$”-character following the dosing object name. The structure of an IQRdosing object consists of the following parts:

Dosing parts Description
TIME Scalar or vector with dosing times (numeric)
ADM Scalar or vector with INPUT numbers (matching IQRmodel INPUT*) and same length as TIME. (numeric)
AMT Scalar or vector with dose amount (numeric)
TINF Scalar or vector with duration of administration (numeric)
RATE Scalar or vector with rate of administration (numeric)