Displaying 2 results from an estimated 2 matches for "forecast1".
Did you mean:
forecast
2009 Nov 24
1
Subscript out of bounds
...is as follows:
> Forecast.A <- ts(matrix(NA, nrow=25, ncol = 1,
+ dimnames = list(c(), c("Outcome"))),
+ start = c(2006, 10), frequency = 12)
> for (i in 1:25) {
+ j <- i + 321
+ Data <- window(omxr, end = time(omxr)[j])
+ Result <- ets(Data, model = "MAM")
+ Forecast1 <- forecast(Result, 1)
+ Forecast.A[i, 2] <- window(omxr, start = time(omxr)[j +
+ 1], end = time(omxr)[j + 1])[[1]]
+ }
What am I doing wrong?
//Tobias
--
View this message in context: http://old.nabble.com/Subscript-out-of-bounds-tp26499901p26499901.html
Sent from the R help mailing list...
2009 Jul 15
2
storing lm() results and other objects in a list
...les and grins for now
newFit5.b <- Arima(modelSource,order=arma5.fit$order,seasonal=list(order=arma5.fit$seasonal),xreg=newmcReg,include.drift=F)
#All the drift terms ones are broke as the drift term doesn't match up
to the # of columns in fReg
#Still don't know how to fix at this time.
forecast1.b <-predict(newFit1.b,n.ahead=modLength-modMax,newxreg=mfReg)
forecast2.b <-predict(newFit2.b,n.ahead=modLength-modMax,newxreg=newmfReg)
forecast3.b <-predict(newFit3.b,n.ahead=modLength-modMax,newxreg=mfReg)
forecast4.b <-predict(newFit4.b,n.ahead=modLength-modMax,newxreg=newmfReg)
for...