Rev 6909 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{mcmc}\alias{mcmc}\alias{as.mcmc}\alias{as.mcmc.default}\alias{is.mcmc}\alias{print.mcmc}\title{Markov Chain Monte Carlo Objects}\usage{mcmc(data= NA, start = 1, end = numeric(0), thin = 1)as.mcmc(x, \dots)is.mcmc(x)}\arguments{\item{data}{a vector or matrix of MCMC output}\item{start}{the iteration number of the first observation}\item{end}{the iteration number of the last observation}\item{thin}{the thinning interval between consecutive observations}\item{x}{An object that may be coerced to an mcmc object}\item{\dots}{Further arguments to be passed to specific methods}}\description{The function \code{mcmc} is used to create a Markov Chain Monte Carloobject. The input data are taken to be a vector, or a matrix withone column per variable.If the optional arguments \code{start}, \code{end}, and \code{thin}are omitted then the chain is assumed to start with iteration 1 andhave thinning interval 1. If \code{data} represents a chain thatstarts at a later iteration, the first iteration in the chain shouldbe given as the \code{start} argument. Likewise, if \code{data}represents a chain that has already been thinned, the thinninginterval should be given as the \code{thin} argument.An mcmc object may be summarized by the \code{summary} functionand visualized with the \code{plot} function.MCMC objects resemble time series (\code{ts}) objects and havemethods for the generic functions \code{time}, \code{start},\code{end}, \code{frequency} and \code{window}.}\author{Martyn Plummer}\note{The format of the mcmc class has changed between coda version 0.3and 0.4. Older mcmc objects will now cause \code{is.mcmc} tofail with an appropriate warning message. Obsolete mcmc objects canbe upgraded with the \code{mcmcUpgrade} function.}\seealso{\code{\link{mcmc.list}},\code{\link{mcmcUpgrade}},\code{\link{thin}},\code{\link{window.mcmc}},\code{\link{summary.mcmc}},\code{\link{plot.mcmc}}.}\keyword{ts}