If you have a matrix X and you want an mcmc.list object for 3 chains:
as.mcmc.list(lapply(as.data.frame(X), mcmc))
is one way.
Best,
Uwe Ligges
On 02.12.2015 03:47, Margaret Donald wrote:
-- Forwarded message --
From: Margaret Donald
Date: 1 December 2015 at 23:09
Subject: R
-- Forwarded message --
From: Margaret Donald
Date: 1 December 2015 at 23:09
Subject: Re: [R] Converting a matrix to an mcmc object
To: Jim Lemon
Thanks, Jim. It may well do, but I am struggling to see how to coerce a
matrix into three chains... I could reprogram the whole show
2 matches
Mail list logo