- output_data
The return value from one of the Bayesian non-parametric DPMM functions, e.g.
PolyaUrnBivarDirichlet or
WalkerBivarDirichlet, or a list, each item containing
one of these return values. Optionally, the output data can have an extra list item
named label
which is used to set the label on the plot legend.
- calendar_age_sequence
A vector containing the calendar age grid (in cal yr BP) on which to
calculate the predictive (summarised/shared) density.
- n_posterior_samples
Number of samples it will draw, after having removed n_burn
,
from the (thinned) realisations stored in the DPMM outputs to estimate the
predictive calendar age density. These samples may be repeats if the number of, post burn-in,
realisations is less than n_posterior_samples
. If not given, 5000 is used.
- interval_width
The confidence intervals to show for both the
calibration curve and the predictive density. Choose from one of "1sigma"
(68.3%),
"2sigma"
(95.4%) and "bespoke"
. Default is "2sigma"
.
- bespoke_probability
The probability to use for the confidence interval
if "bespoke"
is chosen above. E.g., if 0.95 is chosen, then the 95% confidence
interval is calculated. Ignored if "bespoke"
is not chosen.
- n_burn
The number of MCMC iterations that should be discarded as burn-in (i.e.,
considered to be occurring before the MCMC has converged). This relates to the number
of iterations (n_iter
) when running the original update functions (not the thinned output_data
).
Any MCMC iterations before this are not used in the calculations. If not given, the first half of
the MCMC chain is discarded. Note: The maximum value that the function will allow is
n_iter - 100 * n_thin
(where n_iter
and n_thin
are the arguments given to
PolyaUrnBivarDirichlet or WalkerBivarDirichlet)
which would leave only 100 of the (thinned) values in output_data
.
- n_end
The last iteration in the original MCMC chain to use in the calculations. Assumed to be the
total number of iterations performed, i.e. n_iter
, if not given.