forecast 函式
先前你已建立模型並儲存為 MET_t_model。現在需要預測這個模型在 2017 年前 5 個月的數值。
本練習屬於課程
用 R 預測產品需求
練習說明
- 使用
forecast函式對你的MET_t_model進行預測。將結果儲存為forecast_MET_t。 - 你需要預測 2017 年前 22 週。
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
# Forecast the first 22 weeks of 2017
forecast_MET_t <- forecast(___, h = ___)
# Plot this forecast #
plot(___)