開始使用免費開始

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(___)
編輯並執行程式碼