[R] arima forecast function

Gabor Grothendieck ggrothendieck at gmail.com
Wed Aug 13 02:42:18 CEST 2008


forecast must be quoted:

install.packages("forecast")

and in this case its actually part of the forecasting bundle so we
could also do this:

install.packages("forecasting")

Look at ?install.packages and note the way it works for different values of
the dependencies argument.

On Tue, Aug 12, 2008 at 7:28 PM, warthog29 <gaylewind at gmail.com> wrote:
>
> I initially input the following commands, and got the corresponding errors:
>
> install.packages(forecast)
> Error in install.packages(forecast) : object "forecast" not found
>> library(forecast)
> Error in library(forecast) : there is no package called 'forecast'
>
>
> I was finally able to get it installed by using the menus provided. Thanks
> for your help.
>
>
> Nordlund, Dan (DSHS/RDA) wrote:
>>
>>> -----Original Message-----
>>> From: r-help-bounces at r-project.org
>>> [mailto:r-help-bounces at r-project.org] On Behalf Of warthog29
>>> Sent: Tuesday, August 12, 2008 3:40 PM
>>> To: r-help at r-project.org
>>> Subject: [R] arima forecast function
>>>
>>>
>>> hi:
>>>
>>> I am trying to fit prediction intervals for an arima object.
>>> My search led
>>> me to the link:
>>>
>>> http://finzi.psych.upenn.edu/R/library/forecast/html/forecast.
>>> Arima.html
>>>
>>> which has the function "forecast", as I wanted. However, when
>>> I try to run
>>> it in R, I get the message:
>>>
>>> Error in plot(forecast(fit)) : could not find function "forecast"
>>>
>>> Even the example provided on the page (having corrected the
>>> function "Arima"
>>> to "arima") does not seem to work.
>>> What's going on? Does the function "forecast" to an older
>>> version of R? Can
>>> somebody please explain?
>>> --
>>
>> Have you installed the forecast package on your system?  If you have, did
>> you load the package?
>>
>> library(forecast)
>>
>>
>> Hope this is helpful,
>>
>> Dan
>>
>> Daniel J. Nordlund
>> Washington State Department of Social and Health Services
>> Planning, Performance, and Accountability
>> Research and Data Analysis Division
>> Olympia, WA  98504-5204



More information about the R-help mailing list