
Add posterior report summaries to an SBT fit
Source:R/posterior-summaries.R
add_posterior_summaries.RdEvaluates selected model report quantities over every retained MCMC draw,
stores lower, median, and upper posterior summaries inside the portable
sbt_fit, and returns the updated fit. A matching existing entry is reused
without report evaluation. Plot functions do not create missing summaries.
Arguments
- fit
An
sbt_fitcontaining MCMC draws.- name
Non-empty name for the embedded summary entry.
- reports
Character report names. The composition entry requires
lf_pred,cpue_lf_pred, andaf_predtogether.- probs
Posterior probabilities to store. The median is always added. Defaults cover both the 90% catch interval and the 95% intervals used by the other posterior plots.
- transform
"plots"for all standard fit-first plots,"composition"for only the exact composition pooling and normalization rules, or"identity"for untransformed report quantities.- option
Parallelization mode passed to
get_posterior().