Dueker JBES 1997 MS-GARCH models

Use this forum for posting example programs or short bits of sample code.

Dueker JBES 1997 MS-GARCH models

Postby TomDoan » Mon Sep 12, 2011 1:30 pm

These are replication files for Dueker(1997), "Markov Switching in GARCH Processes and Mean-Reverting Stock-Market Volatility," J of Business & Economic Statistics, vol. 15, no 1, 26-34 using a reconstruction of the original data file. Dueker fits several different models with different types of switching. All of models allow the mean to switch, but two of these have "variances" switching, and two have the degrees of freedom in the conditional t density switching in different ways.

Switching GARCH (as opposed to ARCH) models require "collapsing" the history of the regimes in some fashion. Dueker waits one period longer for this than Gray(1996) does (viewtopic.php?f=8&t=1594). This actually makes it easier to adapt the technique to different models than Gray's.

Switching GARCH models is one of the topics in the course materials: viewtopic.php?f=24&t=1185

dueker_swgarch.rpf
GARCH model with switching mean (only)
(4.66 KiB) Downloaded 212 times

dueker_swgarch_nf.rpf
GARCH model with switching variance
(5.53 KiB) Downloaded 231 times

dueker_swgarch_df.rpf
GARCH model with switching degrees of freedom in t error process
(5.26 KiB) Downloaded 160 times

dueker_swgarch_k.rpf
GARCH model with switching degrees of freedom
(5.29 KiB) Downloaded 168 times

dueker_swarch.rpf
SWARCH model
(4.65 KiB) Downloaded 189 times

sp500.xls
(Reconstructed) data file
(93 KiB) Downloaded 228 times
TomDoan
 
Posts: 2760
Joined: Wed Nov 01, 2006 5:36 pm

Re: Dueker JBES 1997 MS-GARCH models

Postby lumengobobo46 » Tue Apr 16, 2013 3:01 am

Dear Tom

I am trying to display the conditional variance according to the different regimes for the first programme (DUEKER-SWARCH). I use the followings:
set momo = gv(1)*h(i)
graph
# momo

i have an answer: missing operator or adjacent operator.

please can you help. I will also like to display the series momo.

Regards
lumengobobo46
 
Posts: 14
Joined: Mon May 02, 2011 2:35 pm

Re: Dueker JBES 1997 MS-GARCH models

Postby TomDoan » Tue Apr 16, 2013 10:12 am

1. Where are you putting this?
2. The "ARCH" factors are dependent upon the expanded states (8 of them with two regimes and two lags + current) and the GV scaling depends upon the contemporaneous regimes, so you wouldn't be using gv(1). Are you looking for eight time series, or did you want something else?
TomDoan
 
Posts: 2760
Joined: Wed Nov 01, 2006 5:36 pm

Re: Dueker JBES 1997 MS-GARCH models

Postby lumengobobo46 » Tue Apr 16, 2013 3:45 pm

Hi tom

Thank you for your prompt response
1. I write the code at the end of the programme.
2. I want to obtain all the time series for conditional volatility (ARCH) related to the different regimes. they are more than 2000 observations.

Regards
lumengobobo46
 
Posts: 14
Joined: Mon May 02, 2011 2:35 pm

Re: Dueker JBES 1997 MS-GARCH models

Postby TomDoan » Tue Apr 16, 2013 3:51 pm

lumengobobo46 wrote:Hi tom

Thank you for your prompt response
1. I write the code at the end of the programme.
2. I want to obtain all the time series for conditional volatility (ARCH) related to the different regimes. they are more than 2000 observations.

Regards


What I'm saying is that at each point in time, there are eight numbers, one for each combination of regimes for t, t-1 and t-2. At any given time period, many of those will have virtually zero probability, so the conditional volatility could be almost complete nonsense. I don't think those time series are especially useful---so the question is, what do you really want?
TomDoan
 
Posts: 2760
Joined: Wed Nov 01, 2006 5:36 pm

Re: Dueker JBES 1997 MS-GARCH models

Postby lumengobobo46 » Sat May 25, 2013 1:24 pm

Hi Tom
I am currently trying to replicate a paper: "Rodrigues, J.C. (2007). Measuring financial contagion: A copula approach, journal of emepirical economics,14, 401-423." by using my own data. The main idea of the paper is to find dependence of conditional volatilities in high and low regime (states) of volatilities. i thought that if i can have time-series data of volatilities in the different regimes, after estimating a SWARCH model, then i could model a copula to find dependence between them. I am expecting the dependence to be different in the different regimes(represented by those time series i would like to derive from the estimated SWARCH model).

REgards
lumengobobo46
 
Posts: 14
Joined: Mon May 02, 2011 2:35 pm

Re: Dueker JBES 1997 MS-GARCH models

Postby thangkhi » Thu Jun 06, 2013 9:11 am

Hello TomDoan
It seems like the code doesnot work on WinRats 7.1, as it shows many mistakes such as the dada(org=column..) and so on. I wonder whether because of the code nor the software version?
Thank you
thangkhi
 
Posts: 1
Joined: Wed Jun 05, 2013 5:49 pm

Re: Dueker JBES 1997 MS-GARCH models

Postby TomDoan » Thu Jun 06, 2013 11:34 am

thangkhi wrote:Hello TomDoan
It seems like the code doesnot work on WinRats 7.1, as it shows many mistakes such as the dada(org=column..) and so on. I wonder whether because of the code nor the software version?
Thank you


We're using Dueker's original data file, which has a large block of comments at the top. The older versions of RATS don't have the TOP and LEFT options that are used to isolate the actual data. If you want to try to do this with an older version of RATS, you'll have to edit the data file in Excel first, though I'm not sure anything prior to version 8 will have all the Markov switching procedures needed.
TomDoan
 
Posts: 2760
Joined: Wed Nov 01, 2006 5:36 pm


Return to Examples and Sample Code

Who is online

Users browsing this forum: No registered users and 1 guest