Re: [R] order.max specification problem in the ar.ols function

2012-11-27 Thread soham chakraborty
Thank you very much for the advice.It works that way. Soham Chakraborty -- View this message in context: http://r.789695.n4.nabble.com/order-max-specification-problem-in-the-ar-ols-function-tp4650942p4650957.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] order.max specification problem in the ar.ols function

2012-11-27 Thread Rui Barradas
Hello, Just set argument aic = FALSE. From the help page: |aic| Logical flag. If |TRUE| then the Akaike Information Criterion is used to choose the order of the autoregressive model. If |FALSE|, the model of order |order.max| is fitted. Hope this helps, Rui Barradas Em 27-11-2012 10:36, soh

[R] order.max specification problem in the ar.ols function

2012-11-27 Thread soham chakraborty
Hello I am facing a curious problem.I have a time series data with which i want to fit auto-regressive model of order p, where p runs from 1:9.I am using a for loop which will fit an AR(p) model for each value of p using the *ar.ols* function. I am using the following code for ( p in 1:9){ a=ar.ol