ts_futurecases.Rd
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)
.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 |
horizon | Horizon periods through which the new_data should be generated; default is |
A tsibble
with horizon periods and respective forecasted incident cases.