runSimulations: Run a suite of simulations defined by params

Description Usage Arguments

View source: R/simulation.R

Description

Run a suite of simulations defined by params

Usage

1
2
3
4
5
6
runSimulations(
  params,
  cores = parallel::detectCores(),
  summaryFun = function(model) model,
  ...
)

Arguments

params

dataframe of parameters for simulations (see runSimulation for details). Can also be a list of lists to support custom function arguments

cores

number of cores to use in the cluster

summaryFun

used to summarise each model after running. Takes the completed model as its argument. Parallelised, so must load necessary libraries etc. explicitly.

...

Arguments passed on to parallel::makeCluster

spec

A specification appropriate to the type of cluster.

type

One of the supported types: see ‘Details’.


oxacclab/adviseR documentation built on Oct. 7, 2021, 8:05 p.m.