Skip to contents

Use to define engine parameters for model simulation.

Usage

specify_SimParams(
  numReplicates = 100L,
  seed = 1234L,
  sort = FALSE,
  ODE = c("MatrixExponent", "DVERK", "DOPRI5", "AutoDetect", "Stiff"),
  rtolODE = 1e-06,
  atolODE = 1e-06,
  maxStepsODE = 50000L
)

Arguments

numReplicates

Integer; Number of replicates to simulate the model

seed

Integer; Random number generator seed

sort

Logical; Specifying whether or not to sort the input data by subject and time values. Default is TRUE.

ODE

Character; Specifying the solver used to numerically solve Ordinary Differential Equations (ODEs). Options are

  • MatrixExponent (the default),

  • DVERK,

  • DOPRI5,

  • AutoDetect,

  • Stiff.

Note: both DVERK and DOPRI5 are non-stiff solvers. NLME will automatically switches to DVERK if ODEs are nonlinear.

rtolODE

Numeric; Specifying relative tolerance for the ODE solver. Not applicable when ODE == MatrixExponent.

atolODE

Numeric; Specifying absolute tolerance for the ODE solver.

maxStepsODE

Numeric; Specifying maximum number of allowable steps or function evaluations for the ODE solver.

Examples

SimArgs1 <- specify_SimParams()

SimArgs2 <-
  specify_SimParams(
    numReplicates = 100,
    seed = 1,
    ODE = "DVERK")