mat.ar2 {dae}R Documentation

Forms an ar2 correlation matrix

Description

Form the correlation matrix of order order whose correlations follow the ar2 pattern. The resulting matrix is banded.

Usage

mat.ar2(ARparameters, order)

Arguments

ARparameters

A numeric containing the two autoregressive parameter values of the process, being the weights given to the lag 1 and lag 2 response values.

order

The order of the matrix to be formed.

Details

The correlations in the correlation matrix, corr say, are calculated from the autoregressive parameters, ARparameters. The values in

Value

A banded correlation matrix whose elements follow an ar2 pattern.

Author(s)

Chris Brien

See Also

mat.I, mat.J, mat.exp, mat.gau, mat.banded, mat.ar1, mat.ar3, mat.sar2, mat.ma1, mat.ma2, mat.arma

Examples

    corr <- mat.ar2(ARparameters = c(0.4, 0.2), order = 4)

[Package dae version 3.2-13 Index]