Bai-Perron JAE 2003 Replication Files

Discussion of models with structural breaks or endogenous switching.

Bai-Perron JAE 2003 Replication Files

Postby TomDoan » Wed Dec 09, 2009 12:27 pm

The attached zip includes the two empirical examples from Bai & Perron(2003), "Computation and analysis of multiple structural change models," Journal of Applied Econometrics, vol. 18, no. 1, pages 1-22. The U.S. real rates example is a regression on constant alone, while the UKPhillips example does an AR(1) model and a Phillips curve with two fixed regressors.

BaiPerronJAE2003.zip
(2.9 KiB) Downloaded 487 times


The new version of the BaiPerron procedure needed by this is at:

viewtopic.php?f=7&t=500
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm

Re: Bai-Perron JAE 2003 Replication Files

Postby jkapsoli » Thu Apr 01, 2010 11:14 am

When I tried to replicate the paper I found the following error message:

## SX9. REPORT is not a Basic Data Type
>>>>type report <<<<
## I2. Expected Instruction Here

I'm using version 7.00 is that the problem?
jkapsoli
 
Posts: 1
Joined: Mon Aug 31, 2009 7:43 pm

Re: Bai-Perron JAE 2003 Replication Files

Postby TomDoan » Thu Apr 01, 2010 1:10 pm

LOCAL REPORT was added with RATS v7.10. There's really no way to get rid of that in the reworked baiperron.src because it works on two separate reports (for the breaks and for the regressors). You can patch a version 7 to 7.10 using http://www.estima.com/resources_patches.shtml. Even better, you should be able to get a 7.3 from your IT department.
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm

Re: Bai-Perron JAE 2003 Replication Files

Postby roger02 » Sun Apr 25, 2010 7:52 am

Dear Tom
is the bai-perron sensitive to the number of structural breaks? i have weekly data of 702, what would be the maximum number of breaks? second, how can i test for the confidence intervals for each break?
thanx
roger02
 
Posts: 2
Joined: Tue Jun 10, 2008 9:28 am

Re: Bai-Perron JAE 2003 Replication Files

Postby TomDoan » Sun Apr 25, 2010 8:55 am

It slows down markedly when the number of breaks goes up. One question to ask is whether it makes any sense to have a "model" with say, five structural breaks.
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm

Re: Bai-Perron JAE 2003 Replication Files

Postby TomDoan » Mon Jun 28, 2010 5:25 pm

A revised version of BAIPERRON.SRC has been posted at:

http://www.estima.com/forum/viewtopic.php?f=7&t=500

This includes confidence bands on the break points.

After working through the various options for computing those, I would caution anyone about putting too much credence in them. They can be very sensitive to minor differences in choice of lag windows for computing long run variances. Also note that they do not take into account the actual difference in sums of squares in moving the break points around by a few entries; instead, they are based on a prediction of the local change based upon the difference in coefficients between the two partitions on either side.
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm

Re: Bai-Perron JAE 2003 Replication Files

Postby nacrointfin » Wed Jul 07, 2010 2:08 am

Hi Tom:

Can the test of Kejriwal, M. and P. Perron (2009). "Testing for Multiple Structural Changes in Cointegrated Regression Models." Journal of Business and Economic Statistics be implemented by the code of Bai-Perron JAE 2003?

Regards,

Terence
nacrointfin
 
Posts: 9
Joined: Fri Sep 14, 2007 2:43 am

Re: Bai-Perron JAE 2003 Replication Files

Postby TomDoan » Wed Jul 07, 2010 4:55 am

nacrointfin wrote:Hi Tom:

Can the test of Kejriwal, M. and P. Perron (2009). "Testing for Multiple Structural Changes in Cointegrated Regression Models." Journal of Business and Economic Statistics be implemented by the code of Bai-Perron JAE 2003?

Regards,

Terence


That's correct. The number crunching is the same as is done by the BaiPerron procedure. The 2009 paper derives the asymptotic distribution of the break test statistics under assumptions allowing for cointegration.
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm

Re: Bai-Perron JAE 2003 Replication Files

Postby iloverats » Thu Aug 11, 2011 11:57 pm

TomDoan wrote:The attached zip includes the two empirical examples from Bai & Perron(2003), "Computation and analysis of multiple structural change models," Journal of Applied Econometrics, vol. 18, no. 1, pages 1-22. The U.S. real rates example is a regression on constant alone, while the UKPhillips example does an AR(1) model and a Phillips curve with two fixed regressors.

BaiPerronJAE2003.zip


The new version of the BaiPerron procedure needed by this is at:

viewtopic.php?f=7&t=500


dear
why are the results form the Rats so different form the paper?


results form the Rats
Breaks RSS BIC LWZ F(m) F(m|m-1)
0 1214.9219 2.51 2.55
1 644.9955 1.92 2.00 89.24 89.24
2 455.9502 1.62* 1.74* 83.23 41.46
3 445.1819 1.64 1.79 57.06 2.39
4 444.8797 1.69 1.88 42.41 0.07
5 449.6395 1.74 1.97 33.02 -1.03

paper results:
supf(1) =57.91
supf(2)= 43.01
supf(3)= 33.22
supf(4)=24.77
supf(5)=18.33
....
which is right? :?:
iloverats
 
Posts: 45
Joined: Thu Dec 02, 2010 11:32 am

Re: Bai-Perron JAE 2003 Replication Files

Postby TomDoan » Fri Aug 12, 2011 4:12 am

Both. The results in the paper use F statistics computed with HAC covariance matrices using a very specific procedure for estimating the long-run variance. Computing that requires a great deal of number-crunching that the dynamic programming algorithm is trying to avoid, but which is feasible here with a relatively small data set. RATS is using the simpler standard F. They both give the same results asymptotically.
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm

Re: Bai-Perron JAE 2003 Replication Files

Postby iloverats » Fri Aug 12, 2011 9:48 am

TomDoan wrote:Both. The results in the paper use F statistics computed with HAC covariance matrices using a very specific procedure for estimating the long-run variance. Computing that requires a great deal of number-crunching that the dynamic programming algorithm is trying to avoid, but which is feasible here with a relatively small data set. RATS is using the simpler standard F. They both give the same results asymptotically.


if i use Rats , are the critical values in their papers(1998)" Estimating and Testing Linear Models with Multiple structural Changes" ok?
thank you very much
iloverats
 
Posts: 45
Joined: Thu Dec 02, 2010 11:32 am

Re: Bai-Perron JAE 2003 Replication Files

Postby TomDoan » Fri Aug 12, 2011 10:17 am

iloverats wrote:
TomDoan wrote:Both. The results in the paper use F statistics computed with HAC covariance matrices using a very specific procedure for estimating the long-run variance. Computing that requires a great deal of number-crunching that the dynamic programming algorithm is trying to avoid, but which is feasible here with a relatively small data set. RATS is using the simpler standard F. They both give the same results asymptotically.


if i use Rats , are the critical values in their papers(1998)" Estimating and Testing Linear Models with Multiple structural Changes" ok?
thank you very much


Yes. Both the HAC and the standard F are covered by the same theorem that lays out the asympotics.
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm

Re: Bai-Perron JAE 2003 Replication Files

Postby Barry Quinn » Tue Oct 18, 2011 4:45 am

TomDoan wrote:Both. The results in the paper use F statistics computed with HAC covariance matrices using a very specific procedure for estimating the long-run variance. Computing that requires a great deal of number-crunching that the dynamic programming algorithm is trying to avoid, but which is feasible here with a relatively small data set. RATS is using the simpler standard F. They both give the same results asymptotically.


Apologies for digging up an old post but my query is directly related to this answer.
In @baiperron is it possible to obtain HAC adjusted F statistics by changing the robust part of this code to 1:
line 274-285
Code: Select all
procedure BPBreakRanges startr endr eqnshift limits
type integer       startr endr
type equation       eqnshift
type rect[int]    *limits
*
option vect[int]  breaks
option integer    maxbreaks
option integer    nfix
option integer    nshift
option switch     robust         0
option switch     qhet            0
option switch      omegahet         0

When i trim my data the sample is relatively small at 50 observations and i would like to compute the HAC covariance matrices as per original paper
This is probably too simplistic a solution to this complex calc!!

thanks
Barry Quinn
 
Posts: 7
Joined: Thu Oct 13, 2011 9:29 am

Re: Bai-Perron JAE 2003 Replication Files

Postby irfansystem » Sat Apr 07, 2012 8:34 pm

I do not understand the F(m) and F(m|m-1)....what do they exactly represent??

Breaks RSS BIC LWZ F(m) F(m|m-1)
0 1214.9219 2.51 2.55
1 644.9955 1.92 2.00 89.24 89.24
2 455.9502 1.62* 1.74* 83.23 41.46
3 445.1819 1.64 1.79 57.06 2.39
4 444.8797 1.69 1.88 42.41 0.07
5 449.6395 1.74 1.97 33.02 -1.03

is there a way to get values for SupFt(1)........UDmax and WDmax? as given in the Bai Perron (2003) page 59.

PS: I do realize that F(m) and F(m/m-1) has got to do something with SupFt but it is not clear to me what is what actually!!
irfansystem
 
Posts: 15
Joined: Mon Mar 14, 2011 5:20 pm

Re: Bai-Perron JAE 2003 Replication Files

Postby Ana_Rita » Sat Apr 07, 2012 8:53 pm

Check this paper by them "Estimating and testing linear models with multiple structural changes" source Econometrica, vol.66, no. 1 (Jan, 1998), pp.47-78.

They show tables of their estimated critical values for the tests. I did try and mach them with the results they present in their 2003 paper but with no succes though...maybe you'll be more lucky then me!

Good luck!
Ana_Rita
 
Posts: 13
Joined: Fri Apr 06, 2012 10:07 am

Next

Return to Structural Breaks and Switching Models

Who is online

Users browsing this forum: No registered users and 1 guest