Only core function of the simulation function, always just returns observations. Mostly useful for estimations / optimal design. Has no checks (for speed)!
Source:R/sim_core.R
sim_core.Rd
Only core function of the simulation function, always just returns observations. Mostly useful for estimations / optimal design. Has no checks (for speed)!
Usage
sim_core(
sim_object = NULL,
ode,
duplicate_t_obs = FALSE,
t_init = 0,
lagtime = c(0)
)
Arguments
- sim_object
list with design and simulation parameters
- ode
function describing the ODE system
- duplicate_t_obs
allow duplicate t_obs in output? E.g. for optimal design calculations when t_obs = c(0,1,2,2,3). Default is FALSE.
- t_init
initialization time before first dose, default 0.
- lagtime
either a value (numeric) or a parameter (character) or NULL.