Hi,

  I am trying to fit an AR model, maximum order =4, order selection
criterion is aic. I wonder why these two give different results:

   m1<-ar.ols(x, aic=TRUE, method="ols", order.max=4)

   m1<-auto.arima(x,d=0, D=0, max.p=4, max.P=0, max.q=0, max.Q=0, ic="aic")

   Could they both use the function predict to do forecasting? Is there any
function that works better?

        temp1<-predict(m1, n.ahead=4)
        PI.fore[i,j]<-temp1$pred[4]

    Thanks

Miao

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to