Learn R Programming

hierband (version 1.0)

ma: Covariance of an equal-weighted moving-average process

Description

Here, Sig[j,k] = 0 if |j-k|>K and Sig[j,k] = 1 - |j-k| / K otherwise.

Usage

ma(p, K)

Arguments

p
dimension of covariance matrix
K
moving-average bandwidth

Value

Returns the covariance matrix, Sig, and the symmetric square root, A, of this matrix.