format_fit {EpiNow2}R 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.

Author(s)

Sam Abbott


[Package EpiNow2 version 1.4.0 Index]