Description Usage Arguments Value Author(s) Examples
Auxiliary switcher that helps the forecasting process. If you pass it a forecast wrapper it returns the forecast model.
1 | switch.cvforecast(x, nmodelo, h, level = 95, onlyfc = FALSE)
|
x |
'ts' data |
nmodelo |
string with forecast wraper, eg. fc_ets |
h |
forecast horizon |
level |
confidence level. Default is 0.95 |
onlyfc |
if TRUE return only forecasts, otherwise returns a full forecast classed object |
... |
extra args, if needed. |
forecasts from ts data or an object of class 'forecast'
LOPES, J. E.
1 2 3 | fit <- switch.cvforecast(AirPassengers, "fc_ets", h=20, level=95)
class(fit)
plot(fit)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.