View source: R/plot-priors-posts-mcmc.R
plot_priors_posts_mcmc | R Documentation |
Priors and posteriors comparison plots for parameters in an MCMC run
plot_priors_posts_mcmc(
model,
param_rm = c("sel", "bo", "tau", "sigma"),
priors_only = FALSE,
text_title_size = 12,
...
)
model |
An iscam model object (class mdl_cls) |
param_rm |
A vector of parameter names to remove. If any are not found
in the output, a warning will be issued. If |
priors_only |
Logical. If |
text_title_size |
Add the model description as a title with this font size. The text
comes from the |
... |
Additional arguments passed to |
Plots the priors overlaid on the posteriors for the given iscam model.
The values in the control file (model$ctl$params
) for each
prior are:
ival = initial value
lb = lower bound
ub = upper bound
phz = ADMB phase
prior = prior distribution funnction 0 = Uniform 1 = normal (p1 = mu, p2 = sig) 2 = lognormal (p1 = log(mu), p2 = sig) 3 = beta (p1 = alpha, p2 = beta) 4 = gamma (p1 = alpha, p2 = beta)
p1 (defined by 5 above)
p2 (defined by 5 above)
See plot_distribution()
for prior plot details including an documentation
on the vertical lines
Other MCMC diagnostics plots:
plot_autocorr_mcmc()
,
plot_pairs_mcmc()
,
plot_traces_mcmc()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.