Closed tamas-ferenci closed 1 year ago
The tsCV function has an ... argument that is passed to forecastfunction, however, it doesn't seem to work when xreg is provided.
tsCV
...
forecastfunction
xreg
My guess it that the problem is the following: when xreg is not present, ... is passed:
fc <- try(suppressWarnings( forecastfunction(y_subset, h = h, ...) ), silent = TRUE)
But, interestingly, not when xreg is used:
fc <- try(suppressWarnings( forecastfunction(y_subset, h = h, xreg = xreg_subset, newxreg=xreg_future) ), silent = TRUE)
Thanks. Now fixed
The
tsCV
function has an...
argument that is passed toforecastfunction
, however, it doesn't seem to work whenxreg
is provided.My guess it that the problem is the following: when
xreg
is not present,...
is passed:But, interestingly, not when
xreg
is used: