ARgenerate | R Documentation |
generate AR(1) correlation matrices
ARgenerate(n, rho)
n |
number of columns/rows |
rho |
correlation parameter |
Toeplitz n \times n
matrix with 1 on the diagonal
and rho^k
on the other diagonals, where k
is distance from the
main diagonal.
Used internally but it is useful for generating your own random matrices.
stats::toeplitz()
ARgenerate(6, .9)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.