Given a reference to a
Model object, this function calls the
simulate function on its
params. It repeats this
nsim times. For example, when simulating regression with a fixed
design, this function would generate
nsim response vectors
an object of class
number of simulations to be conducted. If a scalar, then
value repeated for each index. Otherwise can be a vector of length
a vector of positive integer indices. Allows simulations to be carried out in chunks. Each chunk gets a separate RNG stream, meaning that the results will be identical whether we run these in parallel or sequentially.
This function creates objects of class
Draws and saves each to
file (at dir/files/model_name/r<index>.Rdata). Note: while "files" is the
default, the name of this directory is from getOption("simulator.files"),
which is the value of getOption("simulator.files") when the model was
If parallel is not NULL, then it must be a list containing
socket_names, which can either be a positive integer specifying the
number of copies to run on localhost or else a character vector of machine
names (e.g., "mycluster-0-0"). The list
parallel can also contain
libraries, a character vector of R packages that will be needed on the
save_locally, a logical that indicates whether the files
generated should be saved on the slaves (i.e., locally) or on the master.
1 2 3 4 5 6 7 8 9
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.