powered by
Form the correlation matrix of order order whose correlations follow the sar pattern. The resulting matrix is banded.
matrix
order
mat.sar(SARparameter, order)
A banded correlation matrix whose elements follow an sar pattern.
A numeric containing the single value of the parameter from which the correlations are calculated.
numeric
The order of the matrix to be formed.
Chris Brien
The values of the correlations in the correlation matrix, corr say, are calculated from the SARparameter, gamma as follows. The values in
corr
the diagonal of corr (k = 1) are one;
k = 1
the first subdiagonal band (k = 2) of corr are equal to gamma/(1 + (gamma * gamma / 4));
k = 2
gamma/(1 + (gamma * gamma / 4))
the subsequent subdiagonal bands, (k = 3:order), of corr are equal to gamma * corr[k-1] - (gamma * gamma/4) * corr[k-2].
k = 3:order
gamma * corr[k-1] - (gamma * gamma/4) * corr[k-2].
mat.I, mat.J, mat.cor, mat.corg, mat.banded, mat.exp, mat.gau, mat.ar1, mat.ar2, mat.ar3, mat.sar2, mat.ma1, mat.ma2, mat.arma
mat.I
mat.J
mat.cor
mat.corg
mat.banded
mat.exp
mat.gau
mat.ar1
mat.ar2
mat.ar3
mat.sar2
mat.ma1
mat.ma2
mat.arma
corr <- mat.sar(SARparameter = -0.4, order = 4)
Run the code above in your browser using DataLab