I'd suggest you get a copy of the book that code accompanies: it's not a trivial question -- this post may also help: http://tolstoy.newcastle.edu.au/R/help/04/07/0117.html -- once you read that I believe I told you how to fit a general ARIMA model before so you should be good to go.
As to your original question (which you seem to have been diverted from): your problem is "embarassingly parallel" so you can use mclapply and friends from the parallel package for R >=2.14 Michael On Fri, Mar 30, 2012 at 10:05 AM, sagarnikam123 <sagarnikam...@gmail.com> wrote: > Yes sir,i m using another's code,i will acknowledge them in my paper > publication when my project completes. > but can u tell me, how to decide P,D & Q values in sarima() function using > code > its difficult to decide by visually,i have 4500 such time series > > > -- > View this message in context: > http://r.789695.n4.nabble.com/how-to-increase-speed-for-function-time-efficiency-of-below-function-tp4515201p4519140.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > 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. ______________________________________________ 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.