Function to provide Bayesian closed-loop control.
bayes_control(
targets,
updates,
prior,
true_pars,
pkmod = pkmod3cptm,
pdmod = emax_eleveld,
pdinv = inv_emax_eleveld,
init0 = NULL,
init_p = NULL,
obs_tms = NULL,
dt_obs = 1/6,
sim_starttm = 0,
tci_alg = "effect",
print_progress = FALSE
)
list with class "bayessim" containing results of closed-loop simulation.
Data frame with columns ("time","target")
Data frame of times at which closed-loop updates should be conducted and optional variable with logical values named 'full_data' indicating if full updates should be used. Defaults to partial.
List with elements "mu" and "sig" specifying the prior mean and covariance matrices for the logged parameter values.
Vector of true patient PK-PD parameters.
PK model
PD model
Inverse PD model
True initial concentrations
Predicted initial concentrations
Times at which observations are collected. If null, observations will be made at fixed intervals specified by 'dtm'.
Interval between measurements.
Start time of simulation
TCI algorithm used. Defaults to effect-site targeting.
Logical. Should current update times be printed to the console.