getInitMonth: Get initialization month

Description Usage Arguments Details Value Examples

View source: R/misc.R

Description

Determine initialization month based on month being forecast and lag. Considers lags up to 11 months in advance.

Usage

1
getInitMonth(month, lag)

Arguments

month

month being forecast (integer from 1 to 12)

lag

months in advance prediction is being made (integer from 1 to 11).

Details

Note that this calculation assumes that the prediction for a month is its first day. This differs from the convention used in our paper which rounds up to the nearest full month. In practice, this may not be the case.

Value

integer corresponding to the initialization month

Examples

1
2
initMonth <- getInitMonth(month = 10, lag = 4)
initMonth

hdirector/IceCastV2 documentation built on Dec. 9, 2018, 12:27 a.m.