Page 1 of 3
BAIPERRON—Multiple change point analysis
Posted: Mon Jun 28, 2010 5:16 pm
by TomDoan
@BAIPERRON is a procedure for the Bai-Perron structural break analysis. This has been substantially updated, and now includes a table with test statistics for different numbers of breaks (TESTS option), and a full table of the final regression (PRINT option). This now includes 95% confidence interval on the break dates. Note that the CI's on the break dates can be
very sensitive to the methods used for calculating long-run variances, particularly since partitions can be fairly (or even very) short.
In May 2011, we corrected an error in the calculation of the BIC which could affect close decisions in the number of breaks.
Detailed description
For an example, see
Bai-Perron JAE 2003.
A related procedure which uses the same basic algorithm to handle multiple breaks in a variable other than "time" is
@MultipleBreaks.
Re: Bai-Perron JAE 2003 Replication Files
Posted: Wed Jul 07, 2010 2:08 am
by nacrointfin
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
Re: Bai-Perron JAE 2003 Replication Files
Posted: Wed Jul 07, 2010 4:55 am
by TomDoan
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.
Re: Bai-Perron JAE 2003 Replication Files
Posted: Tue Oct 18, 2011 4:45 am
by Barry Quinn
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
Re: BAIPERRON Procedure (revised)
Posted: Sat Mar 23, 2013 9:16 am
by Aktar
Hello,
Is the procedure shaped for testing no break versus one break?
i find a supF(1|0) very high (1640) for a sample of 444 obs. (pure structural change model). Given the number of observations and the shape of my serie (REER between 1975 to 2010), a high probability of rejected the null (zero break) should be normal... but 1600 is maybe too high no? (even if critical value is near to 30).
Thank you very much
Re: BAIPERRON Procedure (revised)
Posted: Mon Jul 08, 2013 10:38 am
by TomDoan
It can be used for 0 vs 1, though
@APBREAKTEST would give you greater information on that. Bai-Perron is a more efficient way to search for two or more breaks---at one break, it's basically the same calculation as in
@APBREAKTEST and similar procedures.
Regarding the observed statistic, that's high but certainly not unreasonable. However, a break statistic that large would probably be associated with an obvious (to the eye) break in the data.
Re: BAIPERRON procedure for multiple change points
Posted: Mon Sep 30, 2013 8:22 pm
by letonre
Hello
Is it possible to apply this test to panel data and enforce the same break dates across a series of models?
Re: BAIPERRON procedure for multiple change points
Posted: Mon Sep 30, 2013 9:16 pm
by TomDoan
letonre wrote:Hello
Is it possible to apply this test to panel data and enforce the same break dates across a series of models?
Not @BAIPERRON. What's the application? Do you need multiple breaks or just a single common break?
Re: BAIPERRON procedure for multiple change points
Posted: Mon Sep 30, 2013 9:50 pm
by letonre
TomDoan wrote:letonre wrote:Hello
Is it possible to apply this test to panel data and enforce the same break dates across a series of models?
Not @BAIPERRON. What's the application? Do you need multiple breaks or just a single common break?
thank you for a quick reply Tom
ideally I'm looking for multiple common breaks in a series of 24 OLS regressions.
for each regression the RHS variables remain the same along with a common time period
if the sequential use of a single break identifier existed i may also be able to use that.
Re: BAIPERRON procedure for multiple change points
Posted: Mon Sep 30, 2013 10:10 pm
by TomDoan
Something like
y(i,t)=X(t)b(i)+u(i,t)
where i=1,...,24; then checking for multiple common time period breaks in the b(i)'s? Would you use the log likelihood to pick the breaks?
Re: BAIPERRON procedure for multiple change points
Posted: Thu May 15, 2014 12:21 pm
by pls
I am working on a linear regression with two independent variables.
1) One of the two regressors is trend stationary after taking into account one breakpoint by applying the Zivot-Andrews test.
2) I considered applying the Bai-Perron procedure to estimate the regression.
3) Bai and Perron in "Computation and Analysis of multiple structural models", Journal of Applied Econometrics, Jan/Feb 2003, state on page 11 that the distribution of the error term can be "consistently estimated using standard kernel methods".
4) Also what if the error terms are heteroscedastic?
5) I don't think the procedure automatically adjusts for the two effects.
6) If so, is there a solution to this problem?
7) I am considering using the Bai Perron procedure to estimate the break dates and then using a dummy variable approach to estimate the coefficients and standard errors using LINREG, which allows for a correction for heteroscedasticity.
Re: BAIPERRON procedure for multiple change points
Posted: Thu May 15, 2014 12:42 pm
by TomDoan
You said that one of the regressors has a break. That has nothing to do with whether the regression has a break which is what Bai-Perron is designed to handle.
Bai-Perron is really designed for multiple (more than one) breaks. It has no computational advantage in dealing with just a single break.
Re: BAIPERRON procedure for multiple change points
Posted: Thu May 15, 2014 1:25 pm
by pls
Hi Tom:
I also conducted the regression using the Bai-Perron procedure and found that there are breaks.
However, I would like to correct for heteroscedasticity and autocorrelation.
Perhaps I could make a change to the procedure in the linreg statement and add "robust" as an option.
Re: BAIPERRON procedure for multiple change points
Posted: Mon Oct 27, 2014 8:19 am
by TomDoan
pls wrote:Hi Tom:
I also conducted the regression using the Bai-Perron procedure and found that there are breaks.
However, I would like to correct for heteroscedasticity and autocorrelation.
Perhaps I could make a change to the procedure in the linreg statement and add "robust" as an option.
The Bai-Perron algorithm picks the break based upon homoscedastic errors, but allows for some HAC errors in doing some other calculations. However, if you want to choose breaks allowing for HAC errors, you can use the calculations from the ONEBREAK.RPF example file.
Re: Bai-Perron JAE 2003 Replication Files
Posted: Tue Dec 01, 2015 4:43 pm
by alexecon
TomDoan wrote: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.
So, one can calculate the F statistics with @BaiPerron and use the critical values from Kejriwal and Perron (2010), right?
Thanks.