Validate that CV window parameters are valid
checkCVArguments(x, windowSize, maxHorizon)
the input time series.
length of the window to build each model. When rolling == FALSE
,
the each model will be fit to a time series of this length, and when rolling == TRUE
the first model will be fit to a series of this length and grow by one each iteration.
maximum length of the forecast horizon to use for computing errors.