View source: R/example_forecaster.R
Simple example forecaster that forecasts confirmed cases.
1 2 3 4 5 6 7 8 | example_forecaster(
df_list,
forecast_date,
ahead = 1:4,
training_window_size = 14,
lags = seq(0, -1 * training_window_size, -7),
quantiles = modeltools::covidhub_probs
)
|
df_list |
List of downloaded covidcast signals. |
forecast_date |
Date from which the forecast should be made. |
ahead |
Vector of epiweeks ahead to predict. |
training_window_size |
Number of days prior to |
lags |
Vector of lags or list of vectors of lags to apply to |
quantiles |
Vector of quantile values at which to predict preds <- evalcast::get_predictions(modeltools::example_forecaster, "example", tibble( data_source = "jhu-csse", signal = "confirmed_incidence_num", geo_type = "state", start_date = as.Date("2021-01-01"), ), as.Date("2021-03-01"), "epiweek") |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.