[Stable] Summaries posterior samples and adds additional custom variables.

format_fit(posterior_samples, horizon, shift, burn_in, start_date, CrIs)

Arguments

posterior_samples

A list of posterior samples as returned by extract_parameter_samples

horizon

Numeric, forecast horizon

shift

Numeric, the shift to apply to estimates

burn_in

Numeric, number of days to discard estimates for

start_date

Date, earliest date with data

CrIs

Numeric vector of credible intervals to calculate.

Value

A list of samples and summarised posterior parameter estimates