VAR-BEKK GARCH one period lag of a variable notation
Posted: Wed Oct 09, 2019 6:59 pm
Dear Users of RATS
I am using a bivariate BEKK-GARCH Model(please see below) to check volatility spillovers between commodity markets.
Because of time difference between two markets, I use the lag notation like lacc{1} in the model.
However, I got the error SR4(tried to use series number -5, -series n1 n2 triples are no longer legal)
Without the lag notation {1}, the model is OK. With {1}, the model does not work!
Can you please guide me to solve the problem?
I have series sacc, lacc with the same date
*Daily data*
OPEN DATA "/Users/data.xlsx"
DATA(FORMAT=XLSX,ORG=COLUMNS, julian=date) 1 2432 sacc lacc
cal(julian = date)
***var-bekk-daily-total***
*****VAR1 sacc lacc*******
system(model=var1)
variables sacc lacc{1}
lags 1
end(system)
***BEKK***
GARCH(P=1,Q=1, model= var1,mv=bekk, dist=t, robusterrors, pmethod=simplex, piters=20, $
method=bfgs, iters=500, rvectors=rd, hmatrices=hh,$
stdresids=rstd, factorby=eigen) /sacc lacc{1}
GARCH(P=1,Q=1, model= var1,mv=bekk, dist=t, ASYMMETRIC, robusterrors, pmethod=simplex, piters=20, $
method=bfgs, iters=500, rvectors=rd, hmatrices=hh,$
stdresids=rstd, factorby=eigen) /sacc lacc{1}
*clear memory
end(reset)
I am using a bivariate BEKK-GARCH Model(please see below) to check volatility spillovers between commodity markets.
Because of time difference between two markets, I use the lag notation like lacc{1} in the model.
However, I got the error SR4(tried to use series number -5, -series n1 n2 triples are no longer legal)
Without the lag notation {1}, the model is OK. With {1}, the model does not work!
Can you please guide me to solve the problem?
I have series sacc, lacc with the same date
*Daily data*
OPEN DATA "/Users/data.xlsx"
DATA(FORMAT=XLSX,ORG=COLUMNS, julian=date) 1 2432 sacc lacc
cal(julian = date)
***var-bekk-daily-total***
*****VAR1 sacc lacc*******
system(model=var1)
variables sacc lacc{1}
lags 1
end(system)
***BEKK***
GARCH(P=1,Q=1, model= var1,mv=bekk, dist=t, robusterrors, pmethod=simplex, piters=20, $
method=bfgs, iters=500, rvectors=rd, hmatrices=hh,$
stdresids=rstd, factorby=eigen) /sacc lacc{1}
GARCH(P=1,Q=1, model= var1,mv=bekk, dist=t, ASYMMETRIC, robusterrors, pmethod=simplex, piters=20, $
method=bfgs, iters=500, rvectors=rd, hmatrices=hh,$
stdresids=rstd, factorby=eigen) /sacc lacc{1}
*clear memory
end(reset)