sim | R Documentation |
Generate synthetic observations
sim(a, n = 100)
a |
ARMA model |
n |
Number of synthetic observations required |
The ARMA model is a list with the following components.
phi | Vector of AR coefficients (index number equals coefficient subscript) |
theta | Vector of MA coefficients (index number equals coefficient subscript) |
sigma2 | White noise variance |
Returns a vector of n
synthetic observations.
a = specify(ar=c(0,0,.99)) x = sim(a,60) plotc(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.