get_result_list: Helper Function to Obtain Simulation Results List

View source: R/helpers_design.R

get_result_listR Documentation

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 be given in the vector vars.

Usage

get_result_list(fun, nsim, vars, parallel, n_cores)

Arguments

fun

(function)
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

should the simulation runs be parallelized across the clusters of the computer?

n_cores

how many cores should be used for parallel computing?

Value

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


Roche/crmPack documentation built on April 30, 2024, 3:19 p.m.