The "flat-line" forecaster, which essentially mirrors the baseline in the COVID Forecast Hub. It augments a flat-line point prediction with a forecast distribution around this point based on quantiles of symmetrized week-to-week residuals.
baseline_forecaster( df_list, forecast_date, incidence_period = c("epiweek", "day"), ahead = 1:4, symmetrize = TRUE )
df_list | list of data of the format that is returned by
|
---|---|
forecast_date | Date object or string of the form "YYYY-MM-DD",
indicating date on which forecasts will be made about some period (e.g.,
epiweek). For example, if |
incidence_period | String indicating the incidence period, either "epiweek" or "day". |
ahead | Vector of (one or more) integers. How many epiweeks/days ahead
are you forecasting? If |
symmetrize | Should symmetrized residuals be used, or unsymmetrized
(raw) residuals? Default is |
Data frame with columns ahead
, geo_value
, quantile
, value
.
The quantile
column gives the predicted quantiles of the forecast
distribution for that location and ahead. An NA indicates a point forecast
(same as the median in this case).