เริ่มต้นใช้งานเริ่มต้นใช้งานได้ฟรี

Forecasting monthly unemployment

Previously, you fit an SARIMA(2,1,0, 0,1,1)12 model to the monthly US unemployment time series unemp. You will now use that model to forecast the data 3 years.

The unemp data has been pre-loaded and plotted for you.

แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร

ARIMA Models in R

ดูคอร์ส

คำแนะนำการฝึกหัด

  • Begin by again fitting the model used earlier in this chapter (using the sarima() command). Recheck the parameter significance and residual diagnostics.
  • Use sarima.for() to forecast the data 3 years into the future.

แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ

ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์

# Fit your previous model to unemp and check the diagnostics


# Forecast the data 3 years into the future

แก้ไขและรันโค้ด