Re: [R] Converting a matrix to an mcmc object

2015-11-29 Thread Jim Lemon
Hi Margaret, Doesn't the "mcmc" function in the "coda" package create an mcmc object from a matrix? Jim On Mon, Nov 30, 2015 at 9:44 AM, Margaret Donald < merricks.merri...@gmail.com> wrote: > Dear List, > > I am using R2jags and post process some mcmc objects to produce a new > object, which i

[R] Converting a matrix to an mcmc object

2015-11-29 Thread Margaret Donald
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