View source: R/nonlinearAR1.sim.R
nonlinearAR1.sim | R Documentation |
This function simulates sequences of variates follow a nonlinear autoregressive order 1 process of the form z_n = g(z_n-1) + epsilon. A normal distribution is assumed for the innovations.
nonlinearAR1.sim(n, g, ...)
n |
number of observations. |
g |
autoregression function. |
... |
any parameters that are taken by |
L. Han and S. Snyman
x <- nonlinearAR1.sim(50, g = function(x) x*sin(x), sd = 2.5) ts.plot(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.