Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

getResultList

Helper function to obtain simulation results list


Description

The function fun can use variables that are visible to itself. The names of these variables have to given in the vector vars.

Usage

getResultList(fun, nsim, vars, parallel = NULL)

Arguments

fun

the simulation function for a single iteration, which takes as single parameter the iteration index

nsim

number of simulations to be conducted

vars

names of the variables

parallel

shall the iterations be parallelized across the cores? if NULL, then no parallelization will be done. If scalar positive number, then so many cores will be used.

Value

the list with all simulation results (one iteration corresponds to one list element)

Author(s)

Daniel Sabanes Bove sabanesd@roche.com


crmPack

Object-Oriented Implementation of CRM Designs

v1.0.0
GPL (>= 2)
Authors
Daniel Sabanes Bove [aut], Wai Yin Yeung [aut], Giuseppe Palermo [aut, cre], Thomas Jaki [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.