run_jags | R Documentation |
Run parallel MCMC sampling using JAGS.
run_jags(
data,
jags_code,
pars,
ST,
cores,
sample,
n.chains,
n.iter,
n.adapt,
inits
)
data |
Data.frame or tibble in long format. |
jags_code |
A string. JAGS model, usually returned by |
pars |
Character vector of parameters to save/monitor. |
ST |
A segment table (tibble), returned by |
cores |
Positive integer or "all". Number of cores.
|
sample |
One of
|
n.chains |
the number of parallel chains for the model |
n.iter |
number of iterations to monitor |
n.adapt |
the number of iterations for adaptation. See
|
inits |
A list if initial values for the parameters. This can be useful
if a model fails to converge. Read more in |
'mcmc.list“
Jonas Kristoffer Lindeløv jonas@lindeloev.dk
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.