tci_effect: TCI algorithm for effect-site targeting
Description
Function for calculating a TCI infusion schedule corresponding to a set of target concentrations.
This function makes use of formulas described by Shafer and Gregg (1992) in "Algorithms to rapidly achieve
and maintain stable drug concentrations at the site of drug effect with a computer-controlled infusion pump"
Numeric vector of target effect-site concentrations.
pkmod
PK model
dtm
Frequency of TCI updates. Default is 1/6 minutes = 10 seconds.
ecmpt
Effect site compartment number
tmax_search
Outer bound on times searched to find a maximum concentration
following an infusion of duration dtm. Defaults to 20 minutes. May need to be increased
if a drug has a slow elimination rate.
maxrt
Maximum infusion rate of TCI pump. Defaults to 1200.
grid_len
Number of time points used to identify time of maximum concentration.
Can be increased for more precision.