Extract forecast dates based on the availability of both case and sequence data.
Arguments
- posterior
A dataframe of posterior output as produced by
fv_tidy_posterior(). For forecast dates to be extracted data withvalue_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)
#> Data unavailable date
#> 1: Cases 2021-06-26
#> 2: Sequences 2021-06-12