This function takes a time series forecast and extracts the point estimate for incident cases out to a specified horizon. This is necessary to generate the "new_data" to be passed into the ts_forecast incident death models that are based on lagged cases.

ts_futurecases(.data, .forecast, horizon = 4)

Arguments

.data

Data from which the new_data should be generated; CAUTION for best results make sure that the data passed to this argument is the same object as used to generate the model/forecast that is specified in ".forecast"

.forecast

A tibble with forecast data generated using ts_forecast; should only be a forecast of incident cases

horizon

Horizon periods through which the new_data should be generated; default is 4

Value

A tsibble with horizon periods and respective forecasted incident cases.