switch.cvforecast: Switcher of time series forecast methods

Description Usage Arguments Value Author(s) Examples

Description

Auxiliary switcher that helps the forecasting process. If you pass it a forecast wrapper it returns the forecast model.

Usage

1
switch.cvforecast(x, nmodelo, h, level = 95, onlyfc = FALSE)

Arguments

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.

Value

forecasts from ts data or an object of class 'forecast'

Author(s)

LOPES, J. E.

Examples

1
2
3
fit <- switch.cvforecast(AirPassengers, "fc_ets", h=20, level=95)
class(fit)
plot(fit)

evandeilton/cvforecast documentation built on May 16, 2019, 9:36 a.m.