Description Usage Arguments Author(s) Examples
This function receives a list of forecast models from the class 'cvforecst' and returns a list of their characteristics.
1 | cvBestModel(objcvfore, cvMethod = "MAPE", residlevel = 0.1, ...)
|
objcvfore |
'cvforecst' object |
cvMethod |
gof statistic, MAPE, MASE, MAE, etc. |
residlevel |
confidence level for residuals tests |
LOPES, J. E.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.