parallelTrial: parallelTrial

Description Usage Arguments Value

Description

This is a utility function for running simulations in parallel.

Usage

1
parallelTrial(fun, nsim, vars, parallel)

Arguments

fun

The function to run nsim times

nsim

The number of simulations to run

vars

The variables which need to be passes to each cluster

parallel

A logical value to determine if the runs should be made parallel

Value

This functions returns a list of results for fun. This is identical to a call to lapply.


finite2/trialSim documentation built on May 16, 2019, 12:54 p.m.