cvBestModel: Best forecast among several ones

Description Usage Arguments Author(s) Examples

Description

This function receives a list of forecast models from the class 'cvforecst' and returns a list of their characteristics.

Usage

1
cvBestModel(objcvfore, cvMethod = "MAPE", residlevel = 0.1, ...)

Arguments

objcvfore

'cvforecst' object

cvMethod

gof statistic, MAPE, MASE, MAE, etc. accuracy

residlevel

confidence level for residuals tests

Author(s)

LOPES, J. E.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
#Define cross validation parameters
myControl <- cvForecastControl(
minObs = 14,
stepSize = 1,
maxHorizon = 30,
residlevel = 0.05)

#Paralell execution improves the processing time
#cl <- makeCluster(4, type='SOCK')
#registerDoParallel(cl)

#Load data
x <- AirPassengers
fit <- cvforecast(x, myControl)
cvBestModel(fit)

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