Learn R Programming

tci (version 0.1.2)

predict_pkmod: Predict concentrations from a pkmod object - can be a user defined function

Description

Apply a PK model piecewise to infusion schedule

Usage

predict_pkmod(
  object,
  ...,
  inf,
  tms = NULL,
  dtm = 1/6,
  return_init = FALSE,
  remove_bounds = TRUE
)

Value

Matrix of predicted concentrations associated with a pkmod object and and infusion schedule.

Arguments

object

An object with class pkmod.

...

Arguments passed on to pkmod

inf

An infusion schedule object with columns "begin","end","infrt".

tms

Times to evaluate predictions at. Will default to a sequence spanning the infusions at intervals of dtm.

dtm

Interval used for prediction if argument tms is unspecified.

return_init

Logical indicating if concentrations at time 0 should be returned. Defaults to FALSE.

remove_bounds

Logical, indicating if concentrations calculated at changes in infusion rates should be returned if not included in prediction times. Defaults to TRUE, so that only concentrations at specified times are returned.