traceplot.cat_bayes | R Documentation |
This function generates a traceplot for the Bayesian sampling model fitted
using rstan
. It utilizes the traceplot
function from the rstan
package
to visualize the sampling progress and convergence of the Markov Chain Monte Carlo (MCMC) chains
for the given model.
## S3 method for class 'cat_bayes'
traceplot(object, ...)
object |
A fitted model object of class |
... |
Additional arguments passed to the |
The function calls rstan::traceplot
on the stan_sample_model
contained
within the x
object. The resulting plot displays the trace of each parameter
across MCMC iterations, helping to assess the convergence and mixing of the chains.
A traceplot displaying the MCMC chains' trace for each parameter, helping to assess convergence.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.