Skip to content
Back to formatted view

Raw Message

Message-ID: <4FC4B41E.5090300@stats.ox.ac.uk>
Date: 2012-05-29T11:33:50Z
From: Brian Ripley
Subject: auto.arima problem
In-Reply-To: <1338281074206-4631664.post@n4.nabble.com>

On 29/05/2012 09:44, Actuarial_Labor wrote:
> Dear all,
>
>
>       I would like to ask how my data set contains problems.
>       Here is what I have done.
>
> SandP =  read.csv("Price.csv")
> library("forecast")
> auto.arima(SandP)

That's a data frame, not (from the help):

        x: a univariate time series

> and
>
> R shewed this to me
>
> Error in model.frame.default(formula = x ~ 1, drop.unused.levels = TRUE) :
>    invalid type (list) for variable 'x'
>
>
> In my data set SandP
> it contains 1 column of the daily index of S&P500, which is a US stock
> index.
>
> ______________________________________________
> R-help at 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.

And note what it says about 'homework': read the help page is part of 
the expected checks before posting.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595