Description Usage Arguments Value Examples
Simulate from a stationary Gaussian AR(1) process at n consecutive
time points.
| 1 | ar1_sim_consecutive(n, rho, sigma, mu = 0)
 | 
| n | The number of timepoints to simulate for. | 
| rho | A real number strictly less than 1 in absolute value. | 
| sigma | A positive real number. | 
| mu | A vector of expected values with length  | 
A vector of length n with the process values.
| 1 2 3 4 5 6 | n <- 10
rho <- 0.5
sigma <- 1
mu <- 1:10
ar1_sim_consecutive(n, rho, sigma)
ar1_sim_consecutive(n, rho, sigma, mu)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.