VECM-GARCH Model

Use this forum for posting example programs or short bits of sample code.
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

VECM-GARCH Model

Unread post by TomDoan »

This is an example of estimation of a VECM-GARCH model (specifically an asymmetric BEKK model) based loosely on Pardo and Torro(2007), "Trading with asymmetric volatility spillovers", JBFA, vol. 34(9-10), 1548-1568, using a different data set.

Note that the data were taken from Yahoo Finance and are in reversed chronological order. RATS v9.1 automatically detects that and rearranges the data. If you want to run this with an earlier version of RATS, you'll need to use a different data set.
vecmgarch.rpf
Program file
(7.25 KiB) Downloaded 1157 times
usstocks.xls
Data file
(72.5 KiB) Downloaded 784 times
Nairoman
Posts: 2
Joined: Tue Oct 16, 2012 10:02 am

Re: VECM-GARCH Model

Unread post by Nairoman »

Dear Mr. Doan,

In this code there are comments about the relationship between futures and spot prices. It is mentioned that
the theoretical relationship would make unnecessary the estimation of the cointegration vector. I would assume that the relationship is then a vector (-1,1). How could that be included in the model form to be usable in GARCH:

The original is:

set dx1 = logdjia-logdjia{1}
set dx2 = logrut-logrut{1}
*
set ect = %eqnprj(ecteq,t)
*
system(model=garchvecm)
var dx1 dx2
Lags 1 to nlags-1
det constant ect{1}
end(system)
*

So it would be ect equal to a series of (-1,1) ?
set ect = ?

Thanks,
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: VECM-GARCH Model

Unread post by TomDoan »

set ect = logdjia-logrut
Post Reply