A simple wrapper function for running Stan in parallel on Mac or Linux
1 2 | parallel_4(fit, data, iter = 2000, pars = c("alpha", "beta", "a",
"log_lik"), cores = 4)
|
fit |
a |
data |
a list with the data for Stan. |
iter |
integer number of iterations to run per chain. |
pars |
character vector of parameters to keep. |
cores |
integer number of cores to run on. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.