Plots various metrics for evaluating probabilistic forecasts by group.

plot_metrics(object, groups = NULL, type, metrics = NULL, newdata = NULL)

Arguments

object

A fitted model object returned by epim. See epimodel-objects.

groups

Either NULL or a character vector specifying the groups to plot for. Default is NULL, which plots all modeled groups.

type

A string specifying the name of the observations to plot. This should match one of the names of the response variables in the obs argument used int the call to epim.

metrics

A string or character vector specifying the plotted forecast error metrics. One of NULL, "crps", "mean_abs_error"

newdata

If provided, the original data used in object is overridden. Useful for forecasting

Value

A ggplot object which can be further modified.