View source: R/score_continuous_integer.R
score_sample | R Documentation |
Evaluate forecasts in a Sample-Based Format (Integer or Continuous)
score_sample(data, forecast_unit, metrics, prediction_type)
data |
A data.frame or data.table with the predictions and observations.
For scoring using
For scoring integer and continuous forecasts a
For scoring predictions in a quantile-format forecast you should provide
a column called
In addition a You can check the format of your data using |
forecast_unit |
A character vector with the column names that define
the unit of a single forecast, i.e. a forecast was made for a combination
of the values in |
metrics |
the metrics you want to have in the output. If |
prediction_type |
character, should be either "continuous" or "integer" |
A data.table with appropriate scores. For more information see
score()
Nikos Bosse nikosbosse@gmail.com
Funk S, Camacho A, Kucharski AJ, Lowe R, Eggo RM, Edmunds WJ (2019) Assessing the performance of real-time epidemic forecasts: A case study of Ebola in the Western Area region of Sierra Leone, 2014-15. PLoS Comput Biol 15(2): e1006785. doi: 10.1371/journal.pcbi.1006785
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.