Simulate TDM collection
collect_tdms.Rd
Using the "ground truth" model, simulate collection of drug/biomarker levels. Returns a data frame of sample time, true value, and measured value (with residual error added).
Arguments
- sim_model
model used for simulated patient response ("truth").
- t_obs
sample collection times (since start of treatment)
- res_var
data frame of residual variability quantities to add. See
pregenerate_ruv
for details. Expects columnsprop
andadd
. Error is added in the linear domain, so log-transformed models should supply error as proportional error with 0 additive error.- pars_i
true parameters for the individual (named list)
- lloq
lower limit of quantification. If non-NULL, all TDMs below LLOQ will be set to half the LLOQ.
- ...
arguments passed on to PKPDsim::sim