# NOT RUN {
scores <- scoringutils::eval_forecasts(scoringutils::quantile_example_data,
summarise_by = c("model", "value_desc", "range"))
scores <- scoringutils::eval_forecasts(scoringutils::range_example_data_long,
summarise_by = c("model", "value_desc", "range"))
scoringutils::range_plot(scores, x = "model", facet_formula = ~ value_desc)
# visualise sharpness instead of interval score
scoringutils::range_plot(scores, y = "sharpness", x = "model",
facet_formula = ~value_desc)
# we saw above that sharpness values crossed. Let's look at the unweighted WIS
scores <- scoringutils::eval_forecasts(scoringutils::range_example_data_long,
interval_score_arguments = list(weigh = FALSE),
summarise_by = c("model", "value_desc", "range"))
scoringutils::range_plot(scores, y = "sharpness", x = "model",
facet_formula = ~value_desc)
# }
Run the code above in your browser using DataLab