runSimulation: Generate simulees and run them through the given simulation.

Description Usage Arguments Value Examples

View source: R/simulator.R

Description

Generate simulees and run them through the given simulation.

Usage

1
runSimulation(simulation, simulees, progressCallback = NULL, showProgress = F)

Arguments

simulation

An object defining the test to be run.

simulees

A tibble of simulees defining id, true theta, and random number seed

progressCallback

A callback function that takes a single parameter, the number of completed simulees.

show_progress

A boolean indicating whether to write progress events to the console

Value

A tibble of simulee test output.

Examples

1
2
3
4
5
  options(warn=-1)
  simulation = initSimulation(readRDS(system.file("example/workshop2pl-small-optimal.rds", package = "CATSimulator")))
  simulation$control$solver = list(name = "lpsolve", external = F, mipGap = 0.0001, timeout = 1000, verbose = F)
  simulees = generateSimuleesByTrueTheta(-2:2, 10001:10005)
  simulationOut = runSimulation(simulation, simulees)

yuehmeir2/CATSimulator documentation built on June 13, 2021, 7:02 p.m.