[R] arima forecast function

Nordlund, Dan (DSHS/RDA) NordlDJ at dshs.wa.gov
Wed Aug 13 01:07:56 CEST 2008


> -----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