Try: library(forecast) plot(forecast(auto.arima(x)))
On Wed, Jan 21, 2009 at 4:01 AM, Yana Mileva <yanamil...@googlemail.com> wrote: > Hello, > > I'm trying to analyze the behavior of a series of numbers. > Let's say I have the following data: 0 0 0 20 20 20 50 50 53 56 23 24 21 10 > 0 4 129 159 30 0 0 0 (for example) - these numbers are some measurements > that are taken on equal interval of times (but the specific moment in time > (e.g. spring or march) is not relevant - just equal intervals of time). > What I want to do is based on the past data to be able to predict what will > happen next. > I've been advised to use time series, but I have no idea how to do that in > R. > > Can someone suggest a better method than time series and if not - can you > pls suggest some sample R code for predicting using time series? > > Thanks! > > Best, > Jana > > [[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. > ______________________________________________ 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.