sim {DTAT} | R Documentation |
Environment for simulation global variables.
Description
To simplify the code of package DTAT, as well as client tasks, this exported environment contains a handful of global variables useful for the simulations.
Details
Global variables maintained within environment sim
are:
-
pkpd
: The population PK/PD model to be simulated. -
pop
: A sample drawn from the population model. -
N
: Restricts simulation to firstN
subjects inpop
. -
params.default
: Default parameters.
Examples
# Even when nrow(pop) is large, one may easily restrict
# time-consuming simulations to pop[1:N,], as follows:
sim$N <- 25
# Now perform simulation work
## Not run:
titrate(...)
## End(Not run)
[Package DTAT version 0.3-7 Index]