dmcSims {DMCfun}R Documentation

dmcSims: Run multiple dmc simulations

Description

Run dmcSim with range of input parameters.

Usage

dmcSims(params, printInputArgs = FALSE, printResults = FALSE)

Arguments

params

(list of parameters to dmcSim)

printInputArgs

Print DMC input arguments to console

printResults

Print DMC output to console

Value

dmcSims returns a list of objects of class "dmcsim"

Examples


# Example 1
params <- list(amp = seq(10, 20, 5), tau = c(50, 100, 150), nTrl = 50000)
dmc <- dmcSims(params)
plot(dmc[[1]])    # full combination 1
plot(dmc)         # delta plots for all combinations
plot(dmc[c(1:3)]) # delta plots for specific combinations

# Example 2
params <- list(amp = seq(10, 20, 5), tau = seq(20, 40, 20), bnds = seq(50, 100, 25))
dmc <- dmcSims(params)
plot(dmc[[1]])  # combination 1
plot(dmc, ncol = 2)       # delta plots for all combinations
plot(dmc[c(1:3)]) # delta plots for specific combinations



[Package DMCfun version 2.0.2 Index]