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.
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
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.HoltWintersfunction.
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()