plot.mcmc_output | R Documentation |

`mcmc_output`

Plots the trace and density plots of the hyperparameters theta from the MCMC
run by `run_mcmc`

.

```
## S3 method for class 'mcmc_output'
plot(x, ...)
```

`x` |
Object of class |

`...` |
Further arguments to bayesplot::mcmc_combo. |

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.

The output object from bayesplot::mcmc_combo.

For IS-MCMC, these plots correspond to the approximate (non-weighted) samples .

`check_diagnostics`

for a quick diagnostics statistics
of the model.

```
data("negbin_model")
# Note the very small number of iterations, so the plots look bad
plot(negbin_model)
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.