Description Usage Arguments Value
NOTE previous name: init_stan_model
1 2 3 4 5 6 | compileStanModel(
model_path,
use_thread = NULL,
use_mpi = NULL,
use_opencl = NULL
)
|
model_path |
string, stan script |
use_thread |
bool/NULL, when reduce_sum or map_rect in script, set it as TRUE. When running, remember to export STAN_NUM_THREADS=4. Default is NULL. |
use_mpi |
bool/NULL, when map_rect in script, set it as TRUE. Deault is NULL. |
use_opencl |
bool/NUYLL, enable the OpenCL backend. Deault is NULL. When set is as TRUE, remember to set STAN_OPENCL=true when compiling. https://mc-stan.org/docs/2_26/cmdstan-guide/parallelization.html
NOTEBUG: use_xxx = NULL when we don't want to use them. When I set them as FALSE, they still treat them as TRUE. |
compiled stan model
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.