Function to simulate data from a specified PK or PK-PD model with a specified infusion schedule.
gen_data(
inf,
pkmod,
pars_pk0,
sigma_add = 0,
sigma_mult = 0,
log_err = FALSE,
init = NULL,
tms = NULL,
pdmod = NULL,
pars_pd0 = NULL,
ecmpt = NULL,
delay = 0,
max_pdval = 100,
min_pdval = 0
)
List with class "datasim"
An infusion rate object outputted from either the 'create_intvl' function or the 'iterate_tci_grid' function
PK model
"True" parameter estimates used to simulate data observations.
Additive residual error standard deviation.
Multiplicative residual error standard deviation.
Logical. Should the error be log-normally distributed?
Initial concentrations.
Observation times. Defaults to beginning of each infusion if unspecified.
PD model if applicable.
PD model parameters if applicable.
Effect-site compartment number. Defaults to last compartment.
Delay between generation and observation of measurements.
Maximum PD value.
Minimum PD value