coda.samples {rjags}R Documentation

Generate posterior samples in mcmc.list format

Description

This is a wrapper function for jags.samples which sets a trace monitor for all requested nodes, updates the model, and coerces the output to a single mcmc.list object.

Usage

coda.samples(model, variable.names, n.iter, thin = 1, ...)

Arguments

model a jags model object
variable.names a character vector giving the names of variables to be monitored
n.iter number of iterations to monitor
thin thinning interval for monitors
... optional arguments that are passed to the update method for jags model objects

Value

An mcmc.list object.

Author(s)

Martyn Plummer

See Also

jags.samples, mcmc.list


[Package rjags version 1.0.3-8 Index]