as_mcmc.list | R Documentation |
CmdStanMCMC
to mcmc.list
This function converts a CmdStanMCMC
object to an mcmc.list
object
compatible with the coda package. This is primarily intended for users
of Stan coming from BUGS/JAGS who are used to coda for plotting and
diagnostics. In general we recommend the more recent MCMC diagnostics in
posterior and the ggplot2-based plotting functions in
bayesplot, but for users who prefer coda this function provides
compatibility.
as_mcmc.list(x)
x |
A CmdStanMCMC object. |
An mcmc.list
object compatible with the coda package.
## Not run:
fit <- cmdstanr_example()
x <- as_mcmc.list(fit)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.