Lesson 16 of 27
Already have access? Sign in here
Already have access? Sign in here
Ask questions about this lesson and get instant answers.
The function arima.sim() can be used to simulate data from a variety of time series models. Based on the model we want to apply, we specify the appropriate values for p, d and q to the model ARIMA(p,d,q).
The general format for the arima.sim() function is as follows:
1arima.sim(model, n)
2model is where we specify the AR, differencing order and MA components.
3n is the length of output series.
4