get_init_month: Get initialization month

Description Usage Arguments Details Value Examples

Description

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

Usage

1

Arguments

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).

Details

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.

Value

integer corresponding to the initialization month

Examples

1
2
init_month <- get_init_month(month = 10, lag = 4)
init_month

IceCast documentation built on June 24, 2019, 9:03 a.m.