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.
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
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
3 matches
Mail list logo