This lesson requires a premium membership to access.
Premium membership includes unlimited access to all courses, quizzes, downloadable resources, and future content updates.
We will now see how we can fit an AR model to a given time series using the arima() function in R. Recall that AR model is an ARIMA(1, 0, 0) model.
We can use the arima() function in R to fit the AR model by specifying the order = c(1, 0, 0).