extract_forecast_dates: Extract forecast dates

extract_forecast_datesR Documentation

Extract forecast dates

Description

Extract forecast dates based on the availability of both case and sequence data.

Usage

extract_forecast_dates(posterior)

Arguments

posterior

A dataframe of posterior output as produced by fv_tidy_posterior(). For forecast dates to be extracted data with value_type == "cases" must be present.

Value

A data.frame containing at least two vectors: Data unavailable indicating the type of data that is missing, and date giving the date data was last available for.

See Also

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

Examples

p <- fv_example(strains = 2, type = "posterior")

extract_forecast_dates(p)

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