## [5255be]: man / model.samples.Rd  Maximize  Restore  History

### 33 lines (32 with data), 1.1 kB

  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 \name{jags.samples} \alias{jags.samples} %- Also NEED an '\alias' for EACH other topic documented here. \title{Generate posterior samples} \description{ Function to extract random samples from the posterior distribution of the parameters of a \code{jags} model. } \usage{ jags.samples(model, variable.names, n.iter, thin = 1, type="trace") } %- maybe also 'usage' for other objects documented here. \arguments{ \item{model}{a jags model object} \item{variable.names}{a character vector giving the names of variables to be monitored} \item{n.iter}{number of iterations to monitor} \item{thin}{thinning interval for monitors} \item{type}{type of monitor} } \details{ The \code{model.samples} function creates monitors for the given variables, runs the model for \code{n.iter} iterations and returns the monitored samples. } \value{ A list of \code{mcarray} objects, with one element for each element of the \code{variable.names} argument. } \author{Martyn Plummer} \seealso{\code{\link{jags.model}}, \code{\link{coda.samples}}} \keyword{models}