Search found 13 matches

by zy761
Tue Oct 28, 2014 8:16 am
Forum: Examples and Sample Code
Topic: Ehrmann-Ellison-Valla(2003) Regime-dependent IRF's
Replies: 153
Views: 321699

Re: Ehrmann-Ellison-Valla(2003) Regime-dependent IRF's

Dear Tom, If I understand right, in this program you show the oil shock (3rd variable) to all the 3 variables in the system. I notice the following in your program: ewise voil(i)=sigmav(i)(3,3) compute swaps=%index(voil) if swaps(1)==2 disp "Draw" draw "Executing swap" Do I need ...
by zy761
Mon Jul 28, 2014 10:02 pm
Forum: Examples and Sample Code
Topic: Diebold-Yilmaz EJ 2009
Replies: 54
Views: 143316

Re: Diebold-Yilmaz EJ 2009

Sure, though you might find it easier to pull the full table into a spreadsheet and do the calculation there. If I understand correctly, the volatility spillover index can be simply the sum of bilateral index: compute tovol1(end)=100.0*(gfevdx(x,a)+gfevdx(y,a)+gfevdx(z,a)+gfevdx(x,b)+gfevdx(y,b)+gf...
by zy761
Mon Jul 28, 2014 6:53 am
Forum: Examples and Sample Code
Topic: Diebold-Yilmaz EJ 2009
Replies: 54
Views: 143316

Re: Diebold-Yilmaz EJ 2009

The directional values are obtained using ewise fromvar(i)=%sum(%xrow(gfevdx,i))-gfevdx(i,i) ewise tovar(i)=%sum(%xcol(gfevdx,i))-gfevdx(i,i) where gfevdx is the extracted value for a particular horizon. 100.0*fromvar(i) is the contribution from other variables to variable i(in percentages). 100.0*...
by zy761
Tue Jun 17, 2014 10:40 pm
Forum: Structural Breaks and Switching Models
Topic: Regime switching multivariate regression
Replies: 1
Views: 6145

Regime switching multivariate regression

Dear Tom, For the procedure of Markov regime switching multivariate regression @MSSysRegression, I see that the independent variables on the right hand side are set to be the same. Is there possibility that the right hand side variables can be different across equations? For example, I want to run t...
by zy761
Mon Oct 14, 2013 12:26 am
Forum: Structural Breaks and Switching Models
Topic: Conditional variance of SWARCH models
Replies: 6
Views: 11645

Re: Conditional variance of SWARCH models

Thanks Tom! It works.
by zy761
Sat Oct 12, 2013 10:36 pm
Forum: Structural Breaks and Switching Models
Topic: Conditional variance of SWARCH models
Replies: 6
Views: 11645

Re: Conditional variance of SWARCH models

Dear Tom, Here is the code I wrote, but actually I am not sure how to deal with GARCHRegimeH(i). I added it at the end of the Dueker's program, and error message turns out that : ## SX15. Trying to Store into Constant or Expression. Called Parameter by Value? >>>>e GARCHRegimeH(i)=1<<<< Could you he...
by zy761
Thu Oct 10, 2013 9:27 pm
Forum: Structural Breaks and Switching Models
Topic: Conditional variance of SWARCH models
Replies: 6
Views: 11645

Re: Conditional variance of SWARCH models

Dear Tom,

Could you post another example of variance estimation for the Dueker's regime switching GARCH case? I have tried to duplicate and revise your above example to Dueker's code, but it does not seem to work. Appreciate your help a lot! Thanks.
by zy761
Thu Apr 18, 2013 7:37 am
Forum: Structural Breaks and Switching Models
Topic: Dueker (1997) output with fixed mean
Replies: 17
Views: 29441

Re: Dueker (1997) output with fixed mean

Dear Tom,

Thanks for your reply. But I have another question when reading the output: How to intepret the P(1,1) and P(1,2)? Does P(i,j) suggest the probability of switching from j to i? Then how to calculate the value of P(2,1) and P(2,2)?
by zy761
Thu Apr 04, 2013 9:00 am
Forum: Structural Breaks and Switching Models
Topic: Dueker (1997) output with fixed mean
Replies: 17
Views: 29441

Re: Dueker (1997) output with fixed mean

Dear Tom,

Sorry, the file I am using is SWGARCH_NF.rpf
by zy761
Thu Apr 04, 2013 1:49 am
Forum: Structural Breaks and Switching Models
Topic: Dueker (1997) output with fixed mean
Replies: 17
Views: 29441

Dueker (1997) output with fixed mean

Dear Tom, I estimate the Dueker (1997)'s paper using my RATs 8.2. It works fine, but when it comes to the last part of the program to estimate the model with fixed means, I cannot get the value of p1 and p2. In fact, p1 and p2 are both zero. Could you help me with this? Thanks a lot for your help in...
by zy761
Thu Jul 05, 2012 6:12 am
Forum: Structural Breaks and Switching Models
Topic: Conditional variance of SWARCH models
Replies: 6
Views: 11645

Conditional variance of SWARCH models

I'm using the replication file of Hamilton and Susmel(1994): Autoregressive Conditional Heteroskedasticity and Changes in Regime to do the SWARCH model. I was able to obtain the result. This program gives us the residuals and squared residuals. However, I cannot find how to get the conditional varia...
by zy761
Sat Mar 31, 2012 10:46 pm
Forum: Structural Breaks and Switching Models
Topic: how to explain the theta of SWARCH.rpf
Replies: 14
Views: 26312

Re: how to explain the theta of SWARCH.rpf

Dear Tom, Thanks for your kind reply. Dear Tom: I'm now running the SWARCH(3,2) model and I have two questions: 1. I get the trasition probability matrix using disp %mslogisticp(theta). It is a 2*3 matrix. But what does each element in the matrix mean? I thought it should be a 3*3 matrix. The bottom...
by zy761
Fri Mar 30, 2012 1:22 am
Forum: Structural Breaks and Switching Models
Topic: how to explain the theta of SWARCH.rpf
Replies: 14
Views: 26312

Re: how to explain the theta of SWARCH.rpf

Dear Tom: I'm now running the SWARCH(3,2) model and I have two questions: 1. I get the trasition probability matrix using disp %mslogisticp(theta). It is a 2*3 matrix. But what does each element in the matrix mean? I thought it should be a 3*3 matrix. 2. Can RATS run a bivariate SWARCH model?