powered by
Simulate from a stationary Gaussian AR(1) process at irregular times.
ar1_sim_irregular(times, rho, sigma, mu = 0)
The time points to simulate for.
A real number strictly less than 1 in absolute value.
A positive real number.
A vector of expected values with length length(times), or a scalar (default equal to 0).
length(times)
A vector of length n with the process values.
n
# NOT RUN { times <- c(3, 5:7, 10) rho <- 0.5 sigma <- 1 mu <- seq_along(times) ar1_sim_irregular(times, rho, sigma) ar1_sim_irregular(times, rho, sigma, mu) # }
Run the code above in your browser using DataLab