Lesson 19 of 27
Already have access? Sign in here
Already have access? Sign in here
Ask questions about this lesson and get instant answers.
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).