简体   繁体   English

R中的HoltWinters模型

[英]HoltWinters model in R

We can build HoltWinters model in R using HoltWinters() function, but how to adjust a damped trend? 我们可以使用HoltWinters()函数在R中建立HoltWinters模型,但是如何调整阻尼趋势呢? In Holt model (holt() function in R) we can set parameter that our trend can be damped (damped=TRUE). 在Holt模型中(R中的holt()函数),我们可以设置可以衰减趋势的参数(damped = TRUE)。 How we can do it in HoltWinters model? 我们如何在HoltWinters模型中做到这一点? Is there any trick for this? 有什么窍门吗?

HoltWinters and holt come from different packages - the first from stats , the second from forecast . HoltWintersholt来自不同的包-从最初stats ,从第二forecast

You can create a Holt Winters model in forecast package using hw function. 您可以使用hw函数在forecast包中创建Holt Winters模型。 The syntax is same as for holt , so just set hw(y, damped = T) when creating your model. 语法与holt相同,因此在创建模型时只需设置hw(y, damped = T)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM