R/gen_autoregressive.R
gen_autoregressive.Rd
This is the function for generating an autoregressive covariance matrix.
gen_autoregressive(m, rho)
Dimension of the matrix.
Correlation coefficient.
An autoregressive covariance matrix.
cov_mat <- gen_autoregressive(m = 6, rho = 0.5)