sim: Environment for simulation global variables.

Description Details Examples

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:

  1. pkpd: The population PK/PD model to be simulated.

  2. pop: A sample drawn from the population model.

  3. N: Restricts simulation to first N subjects in pop.

  4. inits_fac: An initializer factory taking an initial state as argument.

  5. params.default: Default parameters.

  6. Regular lines start with a non-whitespace character.

  7. Records are separated by one or more empty lines.

Examples

1
2
3
4
5
# 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: doChemo(...)

dcnorris/DTAT documentation built on May 7, 2019, 10:45 p.m.