Description Usage Arguments Details Value Examples
Determine initialization month based on month being forecast and lag. Considers lags up to 11 months in advance.
1 | get_init_month(month, lag)
|
month |
forecast month (integer from 1 to 12 corresponing to month of year) |
lag |
months in advance prediction is being made (integer from 1 to 11). |
Note that this calculation assumes that the prediction for a month is its on first day. This differs from the labeling used in Director et al. (2017) which rounds up to the nearest full month.
integer corresponding to the initialization month
1 2 | init_month <- get_init_month(month = 10, lag = 4)
init_month
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.