plot.mcmc_output {bssm} | R Documentation |
Trace and Density Plots for mcmc_output
Description
Plots the trace and density plots of the hyperparameters theta from the MCMC
run by run_mcmc
.
Usage
## S3 method for class 'mcmc_output'
plot(x, ...)
Arguments
x |
Object of class |
... |
Further arguments to bayesplot::mcmc_combo. |
Details
For further visualization (of the states), you can extract the posterior
samples with as.data.frame
and as_draws
methods to be used for example
with the bayesplot
or ggplot2
packages.
Value
The output object from bayesplot::mcmc_combo.
Note
For IS-MCMC, these plots correspond to the approximate (non-weighted) samples .
See Also
check_diagnostics
for a quick diagnostics statistics
of the model.
Examples
data("negbin_model")
# Note the very small number of iterations, so the plots look bad
plot(negbin_model)
[Package bssm version 2.0.2 Index]