powered by
An easy function to generate a AR(1) correlation matrix.
corrmat_AR1(m, rho)
A correlation matrix
An integer. Dimension of the correlation matrix.
A number. Correlation coefficient between \((0,1)\)
corrmat_AR1( m = 3, rho = 0.2 )
Run the code above in your browser using DataLab