ts-models-AR1 | R Documentation |
Returns a simulated time series (Y_t)
that fulfills the following equation:
Y_t = a Y_{t-1} + \epsilon_t,
where a
is a parameter and \epsilon_t
is independent white
noise with marginal distribution specified by the parameter innov
.
AR1(n, a, overhead = 500, innov = rnorm)
n |
length of the time series to be returned |
a |
parameter of the model |
overhead |
an integer specifying the “warmup” period to reach an approximate stationary start for the times series |
innov |
a function that generates a random number each time
|
Returns an AR(1) time series with specified parameters.
plot(AR1(100, a=-0.7), type="l")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.