Create evaluation object
create_eval_design.RdThis function defines the evaluation metric and timing for non-target metrics. Use this function to record outputs from the simulation like troughs or AUC that are not at the target times.
Usage
create_eval_design(
  evaltype = mipd_target_types(),
  time = NULL,
  when = NULL,
  offset = NULL,
  at = NULL,
  anchor = c("dose", "day")
)Arguments
- evaltype
 evaluation metric(s) to use. Types from
mipd_target_types()- time
 a vector of numeric values at which to measure and optimize the target. In most cases
timeis not required as argument, and will be inferred from the thetargettype. Ifatvalues are supplied, the target times will be calculated adaptively during the trial. Theatdetermine which dose is used as reference anchor. andtimewill be relative to the specifiedat. If noatvalues are specified, thetimevalues will be used as the fixed absolute target times in the simulated trial.- when
 character vector of same length as
time(or single value) determining how to interpret the provided targettime. IfNULLwill use the dose time as offset (default). Other options arecmaxorpeak, which will use the end of infusion as the base for thetime, orcminortrough, which will use the time of next dose as the offset.- offset
 offset from a
whenmoment (dose, peak, or trough).- at
 numeric vector of the dose or day number to "anchor" the target times to. Vector needs to be of same length as
t. Ifanchoris set today, then the first dose in that day is used. If later doses in the day are preferred, the anchor can also be specified fractionally, e.g.1.5will use the time of the first dose in the second half of the 1st day.- anchor
 either
dayordose. Single value required, i.e. anchor types cannot be mixed.