[R] Converting a matrix to an mcmc object

Margaret Donald merricks.merricks at gmail.com
Sun Nov 29 23:44:31 CET 2015

Dear List,

I am using R2jags and post process some mcmc objects to produce a new
object, which is currently a matrix, which replicates the shape of the
objects from which it is derived.

I want to produce a Gelman-Rubin graph from its (implied) three chains, but
I need to coerce the matrix into an mcmc object if I am to use gelman.plot
or gelman.diag from the R-package "coda".

(The various mcmc functions in "coda" seem to work in the other

Margaret Donald

Margaret Donald
Post Doctoral researcher
University of New South Wales
margaret.donald at unsw.edu.au
0405 834 550

	[[alternative HTML version deleted]]

More information about the R-help mailing list