[英]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
. HoltWinters
和holt
来自不同的包-从最初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.