Determining Threshold Value in the VAR model

Discussion of models with structural breaks or endogenous switching.

Determining Threshold Value in the VAR model

Postby nazif » Wed Mar 30, 2011 6:59 am

Dear all,
I estimate the following simple VAR model to compare the effectiveness of credit channel in the high and the low inflation regime. In case of a linear regression i can easily use ThreshTest procedure to find a threshold break, however it is not applicable in VARs. Is there any procedure to find a threshold value in the VAR model similar to one used in the linear regression or could you please help me to modify this program?
Thanks in advance.
nazif
 

Re: Determining Threshold Value in the VAR model

Postby TomDoan » Wed Mar 30, 2011 9:40 am

See the Tsay JASA 1998 example files on the RATS distribution, or here:

http://www.estima.com/forum/viewtopic.php?f=8&t=1004
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm

Re: Determining Threshold Value in the VAR model

Postby nazif » Wed Mar 30, 2011 12:16 pm

Dear Tom,
Thanks. I tried to modify Tsay's code. I write the following. but I'm afraid it is not running properly. Furthermore when I set the first lag of intbrate (interbank interest rate) as a threshold variable, the best break is founded as -0.30000 but It doesn't make sense since I dont have such an observation in the threshold variable.
I would be very happy if you check what is wrong with this code.
Thanks again
Nazif
Attachments
montra_2011_4.xls
(99.5 KiB) Downloaded 64 times
nazif
 

Re: Determining Threshold Value in the VAR model

Postby TomDoan » Wed Mar 30, 2011 12:58 pm

You copied the original definition of the search grid series from the Tsay example, which (as you note) makes no sense for your data. In fact, none of the values are in range for your threshold series, so all the values fit the same. Try

@gridseries(from=.08,to=.90,n=300,pts=ngrid) rgrid

instead.
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm

Re: Determining Threshold Value in the VAR model

Postby nazif » Wed Mar 30, 2011 1:12 pm

Many Thanks :D ,
It is working very well right now. but I have another question. Does the range of grid search should have to cover all values of the threshold variable?
Nazif
nazif
 

Re: Determining Threshold Value in the VAR model

Postby TomDoan » Wed Mar 30, 2011 2:12 pm

nazif wrote:Many Thanks :D ,
It is working very well right now. but I have another question. Does the range of grid search should have to cover all values of the threshold variable?
Nazif


You can't cover the whole range because there won't be enough data points on either end to estimate the model. Excluding about 10% on each end would be common, but if the number of regressors in the VAR is large relative to the number of data points, you might need to leave out more than that.
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm

Re: Determining Threshold Value in the VAR model

Postby nazif » Thu Mar 31, 2011 7:15 am

Dear Tom,
Thanks for your help again. Now my model is seem to be working properply. I used montevar.src procedure to create impulse responses with error bands. Is it possible to modify this procedure to create only responses for specific variables such as intbrate or lm1 or to print the results similar the one obtained from impulse instruction.
Regards
Nazif
ps I'm using RATS version 7.1

system(model=creditmodel2)
variables LINDTR_SA LCPI_SA LM1 INTBRATE LCREUS
lags 1 to p
det constant lpetpri{1 to 4} ffr{1 to 4} indus{1 to 4}
end(system)
estimate(smpl=low)
impulse(model=creditmodel2,window="Low Inflation Regime", steps=nsteps)
@MonteVar(model=creditmodel2, step=24, draws=10000, header= "Low Inflation Regime")
nazif
 

Re: Determining Threshold Value in the VAR model

Postby TomDoan » Thu Mar 31, 2011 9:14 am

If you need a more flexible set of graphs, see the discussion on

http://www.estima.com/forum/viewtopic.php?f=4&t=992

about using a different set of procedures rather than montevar.
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm

Re: Determining Threshold Value in the VAR model

Postby iloverats » Fri Apr 01, 2011 12:05 am

dear
if i determining Threshold Value in the VAR model

how to calculate the impulse response function of threshold VAR?
iloverats
 
Posts: 45
Joined: Thu Dec 02, 2010 11:32 am

Re: Determining Threshold Value in the VAR model

Postby TomDoan » Fri Apr 01, 2011 10:35 am

iloverats wrote:dear
if i determining Threshold Value in the VAR model

how to calculate the impulse response function of threshold VAR?


http://www.estima.com/forum/viewtopic.php?f=30&t=948

is for a threshold VECM, which is a bit more complicated, but the idea is the same.
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm


Return to Structural Breaks and Switching Models

Who is online

Users browsing this forum: No registered users and 1 guest