avail_forecasts {scoringutils} | R Documentation |
Display Number of Forecasts Available
Description
Given a data set with forecasts, count the number of available forecasts for arbitrary grouping (e.g. the number of forecasts per model, or the number of forecasts per model and location). This is useful to determine whether there are any missing forecasts.
Usage
avail_forecasts(data, by = NULL, collapse = c("quantile", "sample"))
Arguments
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 |
by |
character vector or |
collapse |
character vector (default is |
Value
A data.table with columns as specified in by
and an additional
column with the number of forecasts.
Examples
avail_forecasts(example_quantile,
collapse = c("quantile"),
by = c("model", "target_type")
)