dmcSims: dmcSims: Run multiple dmc simulations

View source: R/dmcSim.R

dmcSimsR 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
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



igmmgi/DMCfun documentation built on April 14, 2024, 7:23 a.m.