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.
Bu egzersiz
Forecasting Product Demand in R
kursunun bir parçasıdırEgzersiz talimatları
- Convert your forecast into an
xtsobject. Use thedates_validobject code provided as your index. - Plot your forecast.
Uygulamalı interaktif egzersiz
Bu örnek kodu tamamlayarak bu egzersizi bitirin.
# 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(___)