Determine initialization month based on month being forecast and lag. Considers lags up to 11 months in advance.
month being forecast (integer from 1 to 12)
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 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.
integer corresponding to the initialization month
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.