Description Usage Arguments Value Examples
Creates the covariance matrix of an AR(1) process with parameters rho
and sigma, observed at the time points in the vector times.
The process is assumed to be in stationarity and to have Gaussian errors.
1 | ar1_cov_irregular(times, rho, sigma)
|
times |
An vector of positive integers, preferably ordered. |
rho |
A real number strictly less than 1 in absolute value. |
sigma |
A positive real number. |
A square matrix with length(times) rows.
1 2 3 4 | times <- c(1, 4:5, 7)
rho <- 0.5
sigma <- 1
ar1_cov_irregular(times, rho, sigma)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.