[R] MCMC object indexing
bbolker at gmail.com
Thu Jan 20 15:10:08 CET 2011
Robinson, David G <drobin <at> sandia.gov> writes:
> I have an mcmc object and I'm trying to plot the quantiles of the
> variables - and not as a function of the
> iterations as in cumuplot.
> I cannot seem to find the right combination of indexing to
> access the variables; after which I'm sure I can
> plot all the statistics I could hope for.
> Any hints for accessing the mcmc object would be appreciated.
A reproducible example would be very useful. In general
I find that I can just index an mcmc object as though it
were a matrix, e.g.:
z <- cbind(a=runif(20),b=runif(20),c=runif(20))
m <- mcmc(data=z)
If that sort of thing doesn't work for you, please
post an example of what doesn't work ...
More information about the R-help