Description Usage Arguments Details Value Examples
AR(1) simulation
1 |
y0 |
initial value |
n |
numer of steps |
phi |
parameter of the model |
distfun |
a distribution function |
... |
parameters to the function disfun |
The AR(1) process is a Markov chain, in which the parts (in lack of a better word) is defined recursively;
Y_n+1=phi*Y_n+e_n+1
the e_n's are i.i.d.
Returns a vector of length n, that is a simulation for an AR(1) process with the given parameters.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.