link_dates_with_posterior: Link dates by time for posterior parameter estimates

View source: R/postprocess.R

link_dates_with_posteriorR Documentation

Link dates by time for posterior parameter estimates

Description

Link dates by time for posterior parameter estimates

Usage

link_dates_with_posterior(posterior, data, timespan = 7, mod_end = 0)

Arguments

posterior

A data frame of summarised posterior estimates as returned by cmdstanr::summary() with an additional type variable which contains the following character string options: "non-VOC", "VOC", "Combined", "Overall".

data

A list of data as returned in the "data" entry of the output returned by fv_sample().

timespan

Integer, defaults to 7. Indicates the number of days between each observation. Defaults to a week.

mod_end

Integer, defaults to 0. Amount to shift the end date of estimates.

Value

A posterior data.frame with an additional data column.

See Also

Functions used for postprocessing of model fits convert_to_stanfit(), extract_draws(), extract_forecast_dates(), fv_extract_forecast(), fv_posterior(), fv_tidy_posterior(), link_obs_with_posterior(), plot.fv_posterior(), print.fv_posterior(), quantiles_to_long(), summary.fv_posterior(), update_voc_label()


epiforecasts/forecast.vocs documentation built on May 14, 2023, 2 p.m.