I would like to estimate a bivariate VECM-BEKK model and then compute the orthogonal vector to the error correction coefficients which I need for the calculation of information shares. However, I run into problems when I try to do this in RATS.
I have done this procedure before in the framework of a standard VECM without GARCH errors:
Code: Select all
set logspot = log(spot)
set logfutures = log(futures)
*
*
*Restrict cointegrating relationship:
equation(coeffs=||1.0,-1.0||) eqxy
# logfutures logspot
*
system(model=vecm)
variables logfutures logspot
lags 1 to 3
det constant
ect eqxy
end(system)
estimate
*Compute orthogonal vector to error correction coefficients:
compute alphaperp=%perp(%vecmalpha)
Code: Select all
garch(model=vecm,mv=bekk,hmatrices=h, MVHSERIES=bekkHmatrix, rvectors=r,pmethod=simplex,piters=5,method=bfgs,iters=400)
Code: Select all
set retspot = log(spot)-log(spot{1})
set retfutures = log(futures)-log(futures{1})
set ect = log(futures)-log(spot)
*
system(model=vecm)
variables retspot retfutures
lags 1 to 3
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)
Code: Select all
compute alphaperp=%perp(%vecmalpha) Any suggestions how I can solve this issue?## I1. Expected Instruction - ALP Is Not Recognizable As One
>>>>alphaperp=<<<<
Thanks a lot.