crisp_nimble | R Documentation |
Note by MF: Complile and Run In Sequence or Parallel following template from https://r-nimble.org/nimbleExamples/parallelizing_NIMBLE.html "\[E]nsure that all NIMBLE execution, including model building, is conducted inside the parallelized code. This ensures that all models and algorithms are independent objects that don't interfere with each other."
crisp_nimble( model_code, constants, data, inits, monitors = c(), nburnin = 0, thin = 1, niter = 1e+05, nchains = 4, nclusters = 4 )
model_code |
either a string containing the code of the model or the variable in which the code is stored |
constants |
ALL the constants |
data |
the dataset to be passed to 'nimble::nimbleModel()' |
inits |
inits parameter to be passed to 'nimble::nimbleModel()' |
monitors |
user modified monitors; leave empty for default (?) |
nburnin |
... |
thin |
... |
niter |
number of iterations |
nchains |
number of chains |
nclusters |
number of clusters |
mcmc.list
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.