mcmc_plot.varstan | R Documentation |
Convenient way to call MCMC plotting functions implemented in the bayesplot package.
## S3 method for class 'varstan'
mcmc_plot(
object,
pars = NULL,
combo = c("dens", "trace"),
fixed = FALSE,
exact_match = FALSE,
...
)
mcmc_plot(object, ...)
object |
An |
pars |
Names of parameters to be plotted, as given by a character vector or regular expressions. By default, all parameters except for group-level and smooth effects are plotted. May be ignored for some plots. |
combo |
An array that contains the types of plot. By default
combo = c("dens","trace"). Supported types are (as names) |
fixed |
Indicates whether parameter names
should be matched exactly ( |
exact_match |
Deprecated alias of argument |
... |
Additional arguments passed to the plotting functions.
See |
A ggplot
object
that can be further customized using the ggplot2 package.
## Not run:
sf1 = stan_ssm(ipc,iter = 500,chains = 1)
# plot posterior intervals
mcmc_plot(sf1)
# only show population-level effects in the plots
mcmc_plot(sf1, pars = "level")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.