Holt 趋势方法
Holt 的局部趋势方法由 holt() 函数实现:
> holt(y, h = 10, ...)
在这里,您将把它应用于 austa 序列。该序列包含 1980-2015 年期间澳大利亚国际访客的年度数量(单位:百万)。数据已预先加载到您的工作区。
本练习是课程的一部分
R 中的预测
练习说明
- 使用 Holt 方法对
austa生成 10 年期预测。相应设置h。 - 使用
summary()查看模型参数和其他信息。 - 使用标准的时间序列绘图函数绘制您的预测。
- 使用
checkresiduals()检查残差是否类似白噪声。
交互式实操练习
通过完成这段示例代码来试试这个练习。
# Produce 10 year forecasts of austa using holt()
fcholt <- ___
# Look at fitted model using summary()
___
# Plot the forecasts
___
# Check that the residuals look like white noise
___