Run an example in OpenBUGS using R2OpenBUGS
1 2 | bugs_example_openbugs(model, n.iter = 5000, n.chains = 2,
n.workers = NULL, dir = "C:/OpenBUGS", examples_dir, working_dir)
|
model |
A character vector (length 1) specifying the model |
n.iter |
The number of iterations. If NULL, the default for each model is used. |
n.chains |
The number of chains |
n.workers |
The number of cores to use |
dir |
Full path to the MultiBUGS install directory |
examples_dir |
Full path to the directory containing the examples |
working_dir |
Full path to a temp dir where the model should be run |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.