View source: R/genericJAGSsim_fxn.r
repeat.sims. A function to streamline simulations using JAGS in R runs jagsUI.
1 2 3 | repeat.sims(SIMdata.fxn, SIMdata.params, JAGdata.fxn, PTM, JAG.initial,
chains, thin, iter, burn, adapt, outfolder.path, out_label = "",
JAGmodel.path, n.sims)
|
SIMdata.fxn |
a function to simulate your data. |
SIMdata.params |
parameter values passed to your data-generating function. |
JAGdata.fxn |
function to produce a data object to be fed to jags at minimum, needs at least 1 argument (the simulated data). |
PTM |
vector of parameters to monitor in jags. |
JAG.initial |
function/list passed to jags containing initial values or steps to produce initial values. |
chains |
to jagsUI. |
thin |
to jagsUI. |
iter |
to jagsUI. |
burn |
to jagsUI. |
adapt |
to jagsUI. |
outfolder.path |
path to folder where simulation results should be written. |
JAGmodel.path |
path to location of JAG model file. |
out_Label |
label to add to each rds file. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.