Skip to content
Prev 206055 / 398503 Next

HoltWinters Forecasting

In situations where an ancient version and a less ancient
version of R give different results for the same data it's
a good idea to check the NEWS file. For HoltWinters() you
will find an entry for R VERSION 2.8.0 that indicates a
change in the default number of start periods used to
autodetect start values from 3 to 2. While this may be
good for 'tidy' series, your series has a pretty messy
start. Another way to look for obvious differences in an
older version of a function and a newer one is to check
the help page and note the arguments and their default
values. Either way, you would find:

start.periods = 3 (R 2.7.2)
start.periods = 2 (R 2.9.1)

So, to get results more reasonable than the obvious junk
produced with start.periods = 2, try 3.

Do upgrade to 2.10.1, though.

  -Peter Ehlers
RobertNZ wrote: