Skip to contents

Use to create set of parameters for simulation runs. Parameters numPoints, maxXRange, yVariables, simAtObs are related to the model in individual mode. They will be outputted to the file specified in model@dataset@simoutFilename, simout.csv by default

Arguments

numReplicates

Number of replicates to simulate

seed

Random number generator seed

numPoints

Number of points in simulation for the models in individual mode

maxXRange

Maximum value of independent variable for the models in individual mode

yVariables

Comma separated character string of Y variables for the models in individual mode

simAtObs

Simulate values at observed values of ivar for the models in individual mode

simulationTables

Optional list of simulation tables. NlmeSimTableDef class instance or a list of such instances. Could be generated by tableParams wrapper function or by NlmeSimTableDef class instance initializing directly.

Examples


table1 <- tableParams(
  name = "simulate.csv",
  timesList = "0,2,4,12,24",
  variablesList = "V,Cl",
  timeAfterDose = TRUE,
  forSimulation = TRUE
)

simParam <- NlmeSimulationParams(
  numReplicates = 10,
  seed = 29423,
  simulationTables = c(table1)
)

simParam <- NlmeSimulationParams(
  numPoints = 100,
  maxXRange = 50,
  yVariables = "C,A1",
  simulationTables = table1
)