parallel_mrgsim_d | R Documentation |
Use future_mrgsim_d()
to simulate with the future
package. Use
mc_mrgsim_d()
to simulate with parallel::mclapply
.
future_mrgsim_d( mod, data, nchunk = 4, ..., .as_list = FALSE, .p = NULL, .dry = FALSE, .seed = TRUE, .parallel = TRUE ) mc_mrgsim_d( mod, data, nchunk = 4, ..., .as_list = FALSE, .p = NULL, .dry = FALSE, .seed = NULL, .parallel = TRUE ) fu_mrgsim_d( mod, data, nchunk = 4, ..., .as_list = FALSE, .p = NULL, .dry = FALSE, .seed = TRUE, .parallel = TRUE ) fu_mrgsim_d0(..., .dry = TRUE)
mod |
The mrgsolve model object see mrgsolve::mrgmod. |
data |
Data set to simulate; see |
nchunk |
Number of chunks in which to split the data set |
... |
Passed to |
.as_list |
If |
.p |
Post processing function executed on the worker; arguments should be (1) the simulated output (2) the model object. |
.dry |
If |
.seed |
Passed to |
.parallel |
if |
A data frame or list of simulated data.
future_mrgsim_ei()
mod <- mrgsolve::house() data <- mrgsolve::expand.ev(amt = seq(10)) out <- future_mrgsim_d(mod, data, nchunk = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.