'Measure Accuracy errors print NA
I'm building ARIMA model on my data and when I try to check the Measure Accuracy errors , it print NA!
I don't know where I missed up. Does any one have suggestions please ?
accuracy(forecast_data, test_data)
$Models
Call $Fit.criteria
"Min.max.accuracy MAE MAPE MSE RMSE NRMSE.mean NRMSE.median
"Not supported" NA NA NA NA NA NA NA
"Not supported" NA NA NA NA NA NA NA
"Not supported" NA NA NA NA NA NA NA
"Not supported" NA NA NA NA NA NA NA
Here's my code:
auto_ARIMA <- auto.arima(training_data, trace=TRUE, ic ="aicc", approximation=FALSE, stepwise=FALSE)
forecast_data <- forecast(object=test_data, model= auto_ARIMA)
accuracy(forecast_data, test_data)
my data is in Time series format and has no NA..
Any help will be appreciated.
updates:
Here's part of what dput(training_data) & dput(test_data) print:
dput(training_data)
c(601L, 215L, 147L, 275L, 707L, 1509L, 2118L, 1506L, 1439L, 1745L,
1882L, 1773L, 1752L, 1773L, 1727L, 1823L, 1860L, 2020L, 1744L,
1670L, 1498L, 1372L, 1262L, 723L, 313L, 166L, 129L, 252L, 695L,
1510L, 2051L, 1484L, 1417L, 1838L, 1756L, 1740L, 1756L, 1675L)
dput(training_data)
c(601L, 215L, 147L, 275L, 707L, 1509L, 2118L, 1506L, 1439L, 1745L,
1882L, 1773L, 1752L, 1773L, 1727L, 1823L, 1860L, 2020L, 1744L,
1670L, 1498L, 1372L, 1262L, 723L, 313L, 166L, 129L, 252L, 695L,
1510L, 2051L, 1484L, 1417L, 1838L, 1756L, 1740L, 1756L, 1675L)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
