dmcSims | R Documentation |
Run dmcSim with range of input parameters.
dmcSims(params, printInputArgs = FALSE, printResults = FALSE)
params |
(list of parameters to dmcSim) |
printInputArgs |
Print DMC input arguments to console |
printResults |
Print DMC output to console |
dmcSims returns a list of objects of class "dmcsim"
# 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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.