We can build HoltWinters model in R using HoltWinters() function, but how to adjust a damped trend? In Holt model (holt() function in R) we can set parameter that our trend can be damped (damped=TRUE). How we can do it in HoltWinters model? Is there any trick for this?
HoltWinters
and holt
come from different packages - the first from stats
, the second from forecast
.
You can create a Holt Winters model in forecast
package using hw
function. The syntax is same as for holt
, so just set hw(y, damped = T)
when creating your model.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.