| plot_ind | R Documentation |
Plots individual posterior distributions using bayesplot.
plot_ind(obj = NULL, pars, show_density = T, ...)
obj |
An output of hBayesDM. Its class should be |
pars |
Character vector of parameter names to plot. |
show_density |
If |
... |
Additional arguments forwarded to the underlying bayesplot function. |
## Not run:
# Run a model
output <- dd_hyperbolic("example", 2000, 1000, 3, 3)
# Plot the hyper parameters ('k' and 'beta')
plot(output)
# Plot individual 'k' (discounting rate) parameters
plot_ind(output, "k")
# Plot individual 'beta' (inverse temperature) parameters
plot_ind(output, "beta")
# Plot individual 'beta' parameters but don't show density
plot_ind(output, "beta", show_density = F)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.