Updates Forecast Horizon Based on Input Data and Target
Source:R/epinow-internal.R
update_horizon.RdArguments
- horizon
Numeric, defaults to 7. Number of days into the future to forecast.
- target_date
Date, defaults to maximum found in the data if not specified.
- data
A
<data.frame>of disease reports (confirm) by date (date).confirmmust be numeric anddatemust be in date format. Optionally this can also have a logicalaccumulatecolumn which indicates whether data should be added to the next data point. This is useful when modelling e.g. weekly incidence data. See also thefill_missing()function which helps add theaccumulatecolumn with the desired properties when dealing with non-daily data. If any accumulation is done this happens after truncation as specified by thetruncationargument.