November 2016
Beginner to intermediate
959 pages
43h 46m
English
The stats package contains functionality for applying the HoltWinters method for exponential smoothing in the presence of trends and seasonality, and the forecast package extends this to forecasting. This recipe addresses these topics.
If you have not already downloaded the files for this chapter, do it now and place them in your R working directory. Install and load the forecast package.
To apply the HoltWinters method for exponential smoothing and forecasting, follow these steps:
> infy <- read.csv("infy-monthly.csv")Read now
Unlock full access