Calculate some basic PK variables from simulated or observed data
calc_pk_variables.RdAUC_SS is derived per subject as F * dose / CL, from the subject's last
dose in regimen, the bioavailability of the compartment that dose goes
into, and the subject's CL, then scaled by dv_scale.
Arguments
- data
data.frame in NONMEM format
- regimen
dosing regimen as a list with a
doseelement, used to derive AUC_SS from the last dose. When it also has anidelement (the subject each dose belongs to) AUC_SS uses each subject's own last dose, otherwise the last dose overall is used for every subject. An optionalcmtelement gives the compartment each dose goes into, which decides the bioavailability that applies (where absent, the regimen'sdefault_cmt, else compartment 1), and an optionaltimeelement the dose time, at which that bioavailability is taken.NULLskips AUC_SS. Atimeelement is also what CMIN_OBS uses to assign observations to dosing intervals; without it the dose records (EVID1 or 4) indataare used, if there are any.- dv_scale
multiplier putting
dose / CLinto the units the model reports concentrations in, i.e.V / S<n>for the observation compartment (seeget_dv_scale_factor()).1(the default) is the usualS<n> = Vcase.- bioavailability
named character vector mapping a dose compartment (number or name, as in the
CMTof the dose records) to the column indataholding the bioavailability for that compartment.NULL(the default) maps compartmentnto a columnF<n>(as NONMEM names them, in either case) wheredatahas one. Doses into a compartment without a bioavailability column are taken as fully bioavailable.