This lesson requires a premium membership to access.
Premium membership includes unlimited access to all courses, quizzes, downloadable resources, and future content updates.
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