VAR-GARCH BEKK and irf

Discussions of ARCH, GARCH, and related models

VAR-GARCH BEKK and irf

Postby luxu1983 » Thu Aug 13, 2009 12:18 pm

dear sir
how can i get the impulse response function from the VAR-Garch bekk model?
thanks
luxu1983
 
Posts: 67
Joined: Wed Aug 12, 2009 10:53 pm

Re: VAR-GARCH BEKK and irf

Postby TomDoan » Thu Aug 13, 2009 9:20 pm

If you do GARCH(MODEL=mymodel,etc.), you can just do an IMPULSE(MODEL=mymodel,...) instruction. You'd have to pick a covariance matrix or otherwise come up with a set of shocks, since the GARCH model doesn't give you a fixed covariance matrix. But IMPULSE will take care of the dynamics.
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm

Re: VAR-GARCH BEKK and irf

Postby luxu1983 » Thu Aug 13, 2009 11:25 pm

TomDoan wrote:If you do GARCH(MODEL=mymodel,etc.), you can just do an IMPULSE(MODEL=mymodel,...) instruction. You'd have to pick a covariance matrix or otherwise come up with a set of shocks, since the GARCH model doesn't give you a fixed covariance matrix. But IMPULSE will take care of the dynamics.


yes i use (model=var) ,my code is

system(model=var1)
variables dlx dly
lags 1
det constant
end(system)
garch(p=1,q=1,model=var1,mv=bekk)
impulse(model=var1,step=20)

i use the impulse instruction but i can not get de irf.
how to modify the code ?
thank you very much TomDoan
luxu1983
 
Posts: 67
Joined: Wed Aug 12, 2009 10:53 pm

Re: VAR-GARCH BEKK and irf

Postby TomDoan » Fri Aug 14, 2009 7:26 am

luxu1983 wrote:yes i use (model=var) ,my code is

Code: Select all
system(model=var1)
variables dlx dly
lags 1
det constant
end(system)
garch(p=1,q=1,model=var1,mv=bekk)
impulse(model=var1,step=20)


i use the impulse instruction but i can not get de irf.
how to modify the code ?
thank you very much TomDoan


You need a PRINT or a RESULTS option on the IMPULSE.
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm

Re: VAR-GARCH BEKK and irf

Postby luxu1983 » Fri Aug 14, 2009 7:50 am

TomDoan wrote:
luxu1983 wrote:yes i use (model=var) ,my code is

Code: Select all
system(model=var1)
variables dlx dly
lags 1
det constant
end(system)
garch(p=1,q=1,model=var1,mv=bekk)
impulse(model=var1,step=20)


i use the impulse instruction but i can not get de irf.
how to modify the code ?
thank you very much TomDoan


You need a PRINT or a RESULTS option on the IMPULSE.



need a RESULTS option likes "impulse(model=var1,step=20,result=impulses)"?
but the impulses are all zero
TomDoan you can try it
thank you very much
luxu1983
 
Posts: 67
Joined: Wed Aug 12, 2009 10:53 pm

Re: VAR-GARCH BEKK and irf

Postby TomDoan » Fri Aug 14, 2009 9:40 am

luxu1983 wrote:
TomDoan wrote:
luxu1983 wrote:yes i use (model=var) ,my code is

Code: Select all
system(model=var1)
variables dlx dly
lags 1
det constant
end(system)
garch(p=1,q=1,model=var1,mv=bekk)
impulse(model=var1,step=20)


i use the impulse instruction but i can not get de irf.
how to modify the code ?
thank you very much TomDoan


You need a PRINT or a RESULTS option on the IMPULSE.



need a RESULTS option likes "impulse(model=var1,step=20,result=impulses)"?
but the impulses are all zero
TomDoan you can try it
thank you very much


That goes back to the previous point - because the GARCH model doesn't estimate a fixed covariance matrix, there isn't any obvious choice for the size of the shocks. So you need a FACTOR or SHOCKS option to feed those in. For instance,

Code: Select all
impulse(model=var1,step=20,result=impulses,factor=%identity(2))


will give you unit shocks to each variable.
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm

Re: VAR-GARCH BEKK and irf

Postby luxu1983 » Wed Aug 19, 2009 4:14 am

That goes back to the previous point - because the GARCH model doesn't estimate a fixed covariance matrix, there isn't any obvious choice for the size of the shocks. So you need a FACTOR or SHOCKS option to feed those in. For instance,

Code: Select all
impulse(model=var1,step=20,result=impulses,factor=%identity(2))


will give you unit shocks to each variable.[/quote]


you mentioned that the GARCH model doesn't estimate a fixed covariance matrix.
if i want choleski impulse function, i must need the fixed covariance matrix??
can my code below can get the choleski impulse function?
garch(p=1,q=1,model=var,mv=bekk,rvector=rr,hmatrices=hh)
*i get the fixed covariance through the standardresid
set standardresid1 = rr(t)(1)/sqrt(hh(t)(1,1))
set standardresid2 = rr(t)(2)/sqrt(hh(t)(2,2))
vcv(matrix=RR)
# standardresid1 standardresid2
impulse(model=var,step=20,result=impulses,decomp=%decomp(RR))
luxu1983
 
Posts: 67
Joined: Wed Aug 12, 2009 10:53 pm

Re: VAR-GARCH BEKK and irf

Postby TomDoan » Wed Aug 19, 2009 7:13 am

luxu1983 wrote:That goes back to the previous point - because the GARCH model doesn't estimate a fixed covariance matrix, there isn't any obvious choice for the size of the shocks. So you need a FACTOR or SHOCKS option to feed those in. For instance,

Code: Select all
impulse(model=var1,step=20,result=impulses,factor=%identity(2))


will give you unit shocks to each variable.



you mentioned that the GARCH model doesn't estimate a fixed covariance matrix.
if i want choleski impulse function, i must need the fixed covariance matrix??
can my code below can get the choleski impulse function?
Code: Select all
garch(p=1,q=1,model=var,mv=bekk,rvector=rr,hmatrices=hh)
*i get the  fixed covariance through the standardresid
set standardresid1 = rr(t)(1)/sqrt(hh(t)(1,1))
set standardresid2 = rr(t)(2)/sqrt(hh(t)(2,2))
vcv(matrix=RR)
# standardresid1 standardresid2
impulse(model=var,step=20,result=impulses,decomp=%decomp(RR))
[/quote]

Yes. That will give you the IRF for the "average" empircal correlation matrix.
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm

Re: VAR-GARCH BEKK and irf

Postby luxu1983 » Wed Aug 19, 2009 2:09 pm

Yes. That will give you the IRF for the "average" empircal correlation matrix.[/quote]

the "average" empircal correlation matrix???
i know this is just Choleski factorization,and"average" empircal correlation matrix you mentioned above is that meaning?

how can i get the confidence bands?
luxu1983
 
Posts: 67
Joined: Wed Aug 12, 2009 10:53 pm

Re: VAR-GARCH BEKK and irf

Postby TomDoan » Wed Aug 19, 2009 4:32 pm

luxu1983 wrote:Yes. That will give you the IRF for the "average" empircal correlation matrix.


the "average" empircal correlation matrix???
i know this is just Choleski factorization,and"average" empircal correlation matrix you mentioned above is that meaning?

how can i get the confidence bands?[/quote]

Because it's a GARCH model, the H matrix changes from period to period. What you're computing is the correlation matrix of the observed standardized residuals; that's going to average across time periods with different values of H.

What does it mean to get "confidence bands"? This isn't a standard VAR where the covariance matrix is time-invariant.
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm

Re: VAR-GARCH BEKK and irf

Postby luxu1983 » Fri Oct 16, 2009 10:21 pm

dear sir
how can i calculate the irf if var garch bekk model includes" M" term
luxu1983
 
Posts: 67
Joined: Wed Aug 12, 2009 10:53 pm

Re: VAR-GARCH BEKK and irf

Postby TomDoan » Mon Oct 19, 2009 8:59 am

luxu1983 wrote:dear sir
how can i calculate the irf if var garch bekk model includes" M" term


There is no "IRF" for a model like that. For a standard VAR GARCH, the mean model is linear. Once you add an M term, the mean model is non-linear and you can't analyze the response to a shock in isolation.
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm

Re: VAR-GARCH BEKK and irf

Postby luxu1983 » Mon Oct 19, 2009 11:47 am

thank you very much
but how can i get something closer to a IRF
luxu1983
 
Posts: 67
Joined: Wed Aug 12, 2009 10:53 pm

Re: VAR-GARCH BEKK and irf

Postby TomDoan » Mon Oct 19, 2009 1:07 pm

Closer to an IRF than what? Since an abstract IRF doesn't exist, what is it that you are trying to compute? An example of a generalized IRF for a specific type of VAR-GARCH-M is given in

http://www.estima.com/forum/viewtopic.php?f=8&t=1189

The response of the mean with the "M" effect is dependent upon both sign and size of the shock.
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm

Re: VAR-GARCH BEKK and irf

Postby luxu1983 » Thu Oct 22, 2009 11:02 pm

how can i do the forcast through different shocks

forcast(model=var,from=100,step=100,shocks=1)
how to set the "shock"
luxu1983
 
Posts: 67
Joined: Wed Aug 12, 2009 10:53 pm

Next

Return to ARCH and GARCH Models

Who is online

Users browsing this forum: No registered users and 1 guest