urc_HPD.RdVisualizes the Highest Posterior Density (HPD) intervals for each parameter in the MCMC output.
urc_HPD(model, parameters = NULL, deviance = FALSE, level = 0.95)A model object returned by UndercountR::urc_mcmc().
Optional character vector of parameter names to include. Default 'all' plots posteriors of all parameters except deviance
Logical specifying whether to include plot of posterior deviance. Default is deviance = FALSE.
Credible level(default is 0.95).
A ggplot object showing HPD credible intervals.
if (FALSE) { # \dontrun{
output <- urc_mcmc(data = mydata)
urc_HPD(output$models$poisson)
} # }