开始使用免费开始使用

Visualizing residual forecasts

Like we have done throughout the course, we should visualize what these forecasts look like. Your model object is for_MET_hi_arima. Remember, your forecast is stored as the mean element of your model object.

本练习是课程的一部分

Forecasting Product Demand in R

查看课程

练习说明

  • Convert your forecast into an xts object. Use the dates_valid object code provided as your index.
  • Plot your forecast.

交互式实操练习

通过完成这段示例代码来试试这个练习。

# Convert your forecasts into an xts object
dates_valid <- seq(as.Date("2017-01-01"), length = 22, by = "weeks")
for_MET_hi_arima <- xts(___$___, order.by = ___)

# Plot the forecast
plot(___)
编辑并运行代码