comVol | R Documentation |
Compute the principal volatility components based on the residuals of a VAR(p) model.
comVol(rtn, m = 10, p = 1, stand = FALSE)
rtn |
A T-by-k data matrix of k-dimensional asset returns |
m |
The number of lags used to compute generalized cross-Kurtosis matrix |
p |
VAR order for the mean equation |
stand |
A logical switch to standardize the returns |
Perform a VAR(p) fit, if any. Then, use the residual series to perform principal volatility component analysis. The ARCH test statistics are also computed for the sample principal components
residuals |
The residuals of a VAR(p) fit |
values |
Eigenvalues of the principal volatility component analysis |
vectors |
Eigenvectors of the principal volatility component analysis |
M |
The transformation matrix |
Ruey S. Tsay and Y.B. Hu
Tsay (2014, Chapter 7)
data("mts-examples",package="MTS") zt=diffM(log(qgdp[,3:5])) m1=comVol(zt,p=2) names(m1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.