Description Usage Arguments Value Examples
Composite function that handles creating, initing, and running jags models in parallel, then collects the resulting samples.
1 2 3 |
file |
A jags file |
data |
Any data values, in a list, as though you were passing them to jags.model (you are) |
n.adapt |
The number of adapts to do |
inits |
Initial parameters |
n.iter |
A number of iterations to run on the update cycle |
n.samples |
The number of samples to collect. |
thin |
How much to thin |
monitor |
What variables do we want to monitor? |
n.breaks |
How often should we pause to update the user about progress? |
predictionVariable |
If there is a prediction variable, that variable can be produced in a special cycle, to avoid generating too much data |
a list of samples
1 2 3 4 5 6 7 8 9 | results <- par.trace.samples(file=paste(workingDir, jagsFile , sep="")
, data=jagsData
, monitor=monitor
, n.iter = updateNum
, n.adapt = n.adapt
, n.samples = nSamplesCoda
, n.breaks=5
, thin=thinning
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.