View source: R/model-validation.R
as_forecast_sample.epinowcast | R Documentation |
This function is used to convert an epinowcast
as returned by
epinowcast()
object to a forecast_sample
object which can be used for
scoring using the scoringutils
package.
## S3 method for class 'epinowcast'
as_forecast_sample(data, latest_obs, ...)
data |
An |
latest_obs |
Latest observations to use for the true values must
contain |
... |
Additional arguments passed to
|
A forecast_sample
object as returned by
scoringutils::as_forecast_sample()
Other modelvalidation:
enw_score_nowcast()
library(scoringutils)
nowcast <- enw_example("nowcast")
latest_obs <- enw_example("observations")
as_forecast_sample(nowcast, latest_obs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.