Displaying 1 result from an estimated 1 matches for "christoph_wegener".
2011 Sep 14
3
Loops
Dear forum,
I would like to forecast e.g. with the arima-model. To figure out which
model works best I am going to predict with this models.
my first code:
for(ar.ord in 1:3){
for(ma.ord in 1:3){
print(predict(arima(para_qtr[1:(n-8),1],order=c(ar.ord,1,ma.ord)),
n.ahead=8)$pred)
}
}
this one works. but I want to "save" my results in a matrix or a data.frame.
my second code: