Download Package `coda`
Transcript
line 21 Examples data(line) HPDinterval(line) line Simple linear regression example Description Sample MCMC output from a simple linear regression model given in the BUGS manual. Usage data(line) Format An mcmc object Source Spiegelhalter, D.J., Thomas, A., Best, N.G. and Gilks, W.R. (1995) BUGS: Bayesian inference using Gibbs Sampling, Version 0.5, MRC Biostatistics Unit, Cambridge. mcmc Markov Chain Monte Carlo Objects 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 summary function and visualized with the plot function. MCMC objects resemble time series (ts) objects and have methods for the generic functions time, start, end, frequency and window. Usage mcmc(data= NA, start = 1, end = numeric(0), thin = 1) as.mcmc(x, ...) is.mcmc(x)