Simulate White Noise (WN) in R

Premium

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

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