This function estimates the long run covariance matrix of a given multivariate data sample.
LongRunCovMatrix(mdobj, h = 0, kern_type = "bartlett")
Returns long run covariance matrix
A multivariate data object
The bandwidth parameter. It is strictly non-zero. Choosing the bandwidth parameter to be zero is identical to estimating covariance matrix assuming iid data.
Kernel function to be used for the estimation of the long run covariance
matrix. The choices are c("BT", "PR", "SP", "FT")
which are respectively, bartlett, parzen, simple and flat-top kernels.
By default the function uses a "barlett"
kernel.