Is "forecast" function substitute for "forecast.HoltWinters" function?

Hello there! :slight_smile:

I am a beginner with R, thus I would like to ask for a help.
I am intending to use "forecast.HoltWinters" function in R to forecast from univariate time-series. Ive found several guidelines on the web, however, after I try to install this package R tells me that it is not available for my version.
However, it is possible to first run smoothing function "HoltWinters()" and then run the smoothed data through function "forecast."
However, I am not sure whether it produces the same results as the "forecast.HoltWinters" would have produced.

To help you with this, please post the specific command you are using to install the package and the complete console output you get.

Hi. Thank you for your reply!
When installing, I am entering this: install.packages("forecast.HoltWinters"), and I am given this response:

install.packages("forecast.HoltWinters")
Installing package into ‘C:/Users/Mich/Documents/R/win-library/4.1’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘forecast.HoltWinters’ is not available for this version of R

A version of this package for your version of R might be available elsewhere,
see the ideas at

Is this suficient for you to define the issue?
Thank you :slight_smile:

There is no R package called forecast.HoltWinters, it seems to be a function from the forecast package instead, in which case you have to install it this way

install.packages("forecast")

Then after loading it with library(forecast) you can use the forecast.HoltWinters function.

Actually, the forecast.HoltWinters() is not exported from the forecast package. To use it, just call forecast() and it will call forecast.HoltWinters() if it is the appropriate method for the model.

Your are right, I misread the documentation, it is a method not a function. But never the less, it is not an R package that needs to be installed with install.packages()

Thank you!
I could not find this information anywhere! :slight_smile:

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.