lag_forecast | R Documentation |
Lagging is done by supplying the parent forecast cycles. This function will then work out which cycles belong to the parent and return the lagged forecast with members from the child cycles appended to those of the parent cycle.
lag_forecast(.fcst, fcst_model, parent_cycles, direction = 1)
.fcst |
A harp_fcst object. |
fcst_model |
The name of the forecast model in the harp_fcst object to be lagged. Must be quoted. |
parent_cycles |
A numeric vector of forecast cycles that form the parents for the lagging. Members between parent cycles are the child cycles. |
dierction |
The direction to do the lagging in. 1 (the default) lags backwards in time from the parent cycles and -1 lags forwards in time. |
A harp_fcst object with fcst_model
now containing the lagged
forecast.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.