Forecasting with AutoRegressive (AR) Model in R

Premium

Now that we know how to estimate the AR model using ARIMA, we can create a simple forecast based on the model.

Step 1: Fit the model

The first step is to fit the model as ARIMA(1, 0, 0). We have already seen this in the previous lesson.

> msft_ar <- arima(msft\_ts,c(1,0,0))

Unlock Premium Content

Upgrade your account to access the full article, downloads, and exercises.

You'll get access to:

  • Access complete tutorials and examples
  • Download source code and resources
  • Follow along with practical exercises
  • Get in-depth explanations