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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
|
\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)
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}
}
\description{
The function `mcmc' is used to create a Markov Chain Monte Carlo object.
The data are taken to be a vector, or a matrix with one column per
variable.
An mcmc object may be summarized by the \code{summary} function
and visualized with the \code{plot} function.
MCMC objects resemble time series (\code{ts}) objects and have
methods 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.3
and 0.4. Older mcmc objects will now cause \code{is.mcmc} to
fail with an appropriate warning message. Obsolete mcmc objects can
be 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}
|