I estimate a standard bivariate VECM-BEKK model with futures and spot prices and need to conduct a cholesky decomposition of the estimated variance-covariance matrix at each time t of my sample period. I know how to do the Cholesky for a time-invariant covariance matrix but I was not able to do it for the time-varying H-matrix of my BEKK model. Does anyone have an idea how to compute the (time-varying) lower triangular matrix from the Cholesky decomposition of H for each t of my sample period?
Here is my code:
Code: Select all
[OPEN DATA "<spot_futures.xlsx"
CALENDAR(W) 2009:7:20
DATA(FORMAT=XLSX,ORG=COLUMNS) 2009:07:20 2014:04:21 spot futures year week
set retspot = log(spot)-log(spot{1})
set retfutures = log(futures)-log(futures{1})
set ect = log(futures)-log(spot)
system(model=vecm)
variables retfutures retspot
lags 1 to 2
det constant ect{1}
end(system)
*
* Estimate by GARCH-BEKK
*
garch(model=vecm,mv=bekk,hmatrices=h, MVHSERIES=bekkHmatrix, rvectors=r,pmethod=simplex,piters=5,method=bfgs,iters=400)
Any help is greatly appreciated!