corAR1 | R Documentation |
This function is a constructor for the corAR1
correlation matrix representing
an autocorrelation structure of order 1.
corAR1(rho, p = 2)
rho |
the value of the lag 1 autocorrelation, which must be between -1 and 1. |
p |
dimension of the requested correlation matrix. |
Returns a p
by p
matrix.
R <- corAR1(rho = 0.8, p = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.