Plots individual posterior distributions using bayesplot.

plot_ind(obj = NULL, pars, show_density = T, ...)

Arguments

obj

An output of hBayesDM. Its class should be 'hBayesDM'.

pars

Character vector of parameter names to plot.

show_density

If TRUE, draws posterior densities via bayesplot::mcmc_areas; otherwise draws point intervals via bayesplot::mcmc_intervals.

...

Additional arguments forwarded to the underlying bayesplot function.

Examples

if (FALSE) { # \dontrun{
# 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)
} # }