ar1_cov_consecutive: Covariance matrix for a stationary Gaussian AR(1) process, observed at
consecutive timepoints.
Description
Creates the covariance matrix of an AR(1) process with parameters rho
and sigma, observed at n consecutive time points. The process
is assumed to be in stationarity and to have Gaussian errors.
Usage
ar1_cov_consecutive(n, rho, sigma)
Arguments
n
An integer greater than or equal to 1.
rho
A real number strictly less than 1 in absolute value.