Description Usage Arguments Value
View source: R/baseline_forecaster.R
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.
1 2 3 4 5 6 7 | 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).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.