The output am trying for is to make a loop of (i, j, k) where i and k takes values [0, 5] and j from [0, 3]. The loop would run on values like:
(0, 0, 0)
(0, 0, 1)
(0, 0, 2)
(0, 0, 3)
(0, 0, 4)
(0, 0, 5)
(0, 1, 0)
(0, 1, 1)
(0, 1, 2)
.
.
.
(5, 3, 5)
Basically I want to run arima (p, d, q) model making loop and extract RMSE value from there.
The code for arima I tried is,
fit <- arima(df.train$Positive, order=c(0, 0, 0),include.mean = FALSE)
S <- as.data.frame(summary(fit))
S$RMSE
The "S$RMSE" gives the RMSE value. But help me in running the loop of "order= c(i, j, k)" and get this RMSE value automatically.
The result I want is finally cbind these two and make a table like,
Order RMSE
(0, 0, 0) xxxx
(0, 0, 1) xxxx
(0, 0 ,2) xxxx