estimateCovariance: Estimate Covariance Matrix from Residuals

View source: R/main_function.R

estimateCovarianceR Documentation

Estimate Covariance Matrix from Residuals

Description

Estimates the covariance (or variance) matrix of the residuals using shrinkage estimation. This function utilizes corpcor::cov.shrink for covariance estimation.

Usage

estimateCovariance(res, ...)

Arguments

res

A numeric matrix of residuals from the VAR model.

...

Additional arguments passed to corpcor::cov.shrink (if any).

Value

A numeric covariance matrix.


VARcpDetectOnline documentation built on April 12, 2025, 1:44 a.m.