Skip to contents

Plot MCMC diagnostics

Usage

plot_diagnostics(
  object,
  pars = c("mu_index", "mu_comparator"),
  type = c("trace", "density", "rhat", "ess")
)

Arguments

object

An mlumr_fit object

pars

Parameters to plot

type

Type of diagnostic plot

Value

A ggplot object, or NULL invisibly if bayesplot is not available.

Examples

if (FALSE) { # \dontrun{
plot_diagnostics(fit, pars = c("mu_index", "mu_comparator"))
} # }