enw_add_latest_obs_to_nowcast | R Documentation |
Add the latest observations to the nowcast output. This is useful for plotting the nowcast against the latest observations.
enw_add_latest_obs_to_nowcast(nowcast, obs)
nowcast |
A |
obs |
An observation |
A data.frame
of nowcast output with the latest observations
added.
Functions used for postprocessing of model fits
build_ord_obs()
,
enw_nowcast_samples()
,
enw_nowcast_summary()
,
enw_posterior()
,
enw_pp_summary()
,
enw_quantiles_to_long()
,
enw_summarise_samples()
,
subset_obs()
fit <- enw_example("nowcast")
obs <- enw_example("obs")
nowcast <- summary(fit, type = "nowcast")
enw_add_latest_obs_to_nowcast(nowcast, obs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.