format_fit: Format Posterior Samples

format_fitR Documentation

Format Posterior Samples

Description

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

Usage

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.


EpiNow2 documentation built on Oct. 31, 2024, 5:09 p.m.