| mat.ar2 | R Documentation | 
Form the correlation matrix of order order whose 
correlations follow the ar2 pattern. The resulting matrix 
is banded.
mat.ar2(ARparameters, order)
ARparameters | 
 A   | 
order | 
 The order of the   | 
The correlations in the correlation matrix, corr say, are calculated 
from the autoregressive parameters, ARparameters.
The values in 
 the diagonal (k = 1) of corr are one; 
 the first subdiagonal band (k = 2) of corr 
are equal to 
ARparameters[1]/(1-ARparameters[2]); 
 in subsequent disgonal bands, (k = 3:order), 
of corr are 
ARparameters[1]*corr[k-1] + ARparameters[2]*corr[k-2].
A banded correlation matrix whose elements follow an ar2 pattern.
Chris Brien
mat.I, mat.J, mat.cor, mat.corg, 
mat.exp, mat.gau, 
mat.banded, mat.ar1, mat.ar3, mat.sar2, 
mat.ma1, mat.ma2, mat.arma
    corr <- mat.ar2(ARparameters = c(0.4, 0.2), order = 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.