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.
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 first N subjects in pop.
inits_fac: An initializer factory taking an initial state as
argument.
params.default: Default parameters.
Regular lines start with a non-whitespace character.
Records are separated by one or more empty lines.
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(...)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.