BRYBOSCHAN (Bry-Boschan Business Cycle Dating)

Use this forum to post complete RATS "procedures". Please be sure to include instructions on using the procedure and detailed references where applicable.
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

BRYBOSCHAN (Bry-Boschan Business Cycle Dating)

Unread post by TomDoan »

@BryBoschan is an implementation of the Bry-Boschan business cycle dating algorithm. For quarterly data, it implements the Pagan-Harding(2002) version.

Bry and Boschan (1971). "Cyclical Analysis of Time Series: Selected Procedures and Computer Programs", NBER, New York.
Pagan and Harding (2002) "Dissecting the cycle: a methodological investigation", Journal of Monetary Economics, Volume 49, Issue 2, 365-381.

Detailed description

Examples

These examples are based upon Mark Watson(1994), "Business Cycle Durations and Postwar Stabilization of the U.S. Economy", American Economic Review, vol 84, no 1, 24-46. The monthly example is from the paper itself, while the quarterly uses the same data set, but is compacted to quarterly.
bryboschan.rpf
Example for monthly data
(463 Bytes) Downloaded 2139 times
bryboschanquarterly.rpf
Example for quarterly data
(563 Bytes) Downloaded 1816 times
watsonaer.rat
Data file
(190.5 KiB) Downloaded 1690 times
m joaorodrigues
Posts: 2
Joined: Fri Mar 06, 2009 8:39 am

Re: Bry-Boschan Business Cycle Data Algorithm

Unread post by m joaorodrigues »

Hi there,

Just wondering if there are any rats codes that calculate the bry-boschan algorithm but for deviation cycles (eg kalman filter, band-pass, etc.) instead of the usual classical cycle.

Artis, Michael J., Massimiliano Marcellino and Tommaso Proietti (2003), “Dating the Euro Area Business Cycle”, CEPR Discussion Paper no. 3696, devised something of that kind!

Thanks,
Best regards
zulkas
Posts: 2
Joined: Fri Jan 13, 2012 2:07 pm

loading files, bry boschan algorhitm

Unread post by zulkas »

Good evening,

I´d like to apologize about my english. I´m from Spain. I´m trying to use winrats to can run the bry boschan algorhitm, but i have no idea how can i do it. I have downloaded the file bryboschan.src but i don´t know what to do with it, i even don´t know how can i import the dates to winrats in a proper format. I have an excel file with the dates in the format 30/12/2011 and with a lot of columns with labels in the first cell and numbers in the rest of them. Even if i was able to import this file to winrats, then what? how could i run the bry boschan algorhitm to my variables? please i really need help.

i attach you the excel file
Attachments
3 peridoos ajustados bueno.xls
(47.5 KiB) Downloaded 1228 times
moderator
Site Admin
Posts: 269
Joined: Thu Oct 19, 2006 4:33 pm

Re: loading files, bry boschan algorhitm

Unread post by moderator »

The first step is of course to get the data read in. If you have no idea how to do that, please start by working through at least the first few sections of the "Introduction to RATS" book included with the software. That should tell you everything you need to know about reading in data.

In terms of applying the Bry Boschan algorithm, that is available in RATS via a pre-written "procedure" included with RATS called @BryBoschan.

Assuming you are new to using procedures in RATS, please see pages 32-33 of the Introduction for some general information on using procedures. You can find more on using procedures on pages 451-452 of the "User's Guide".

Next, open up the BryBoschan.src file (which contains the code for the procedure). You will find comment lines at the top of the file describing the syntax (options, parameters, etc.) and other details of the procedure.

I hope this will help you get started.
zulkas
Posts: 2
Joined: Fri Jan 13, 2012 2:07 pm

Re: loading files, bry boschan algorhitm

Unread post by zulkas »

I have created an excel with clear turning points to try to understand how the algorithm works. i´m using these commands:

CAL 2005 6 12
ALL 2011 12
OPEN DATA ADFDF..XLS
DATA(FORMAT=XLS,ORG=COLS)
CALENDAR(M) 2005:6

@BRYBOSCHAN PEAK=2007:11 TROUGH=2005:10 PRUEBA 2005:6 2011:12

i don´t know what i´m doing wrong, can anyone explain me which commands do i have to use to obtain the results i´m looking for?
Attachments
ADFDF.xls
(15.5 KiB) Downloaded 1185 times
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: loading files, bry boschan algorhitm

Unread post by TomDoan »

There are examples of the use of @BryBoschan above.

The PEAK and TROUGH options are for output, not input. Bry-Boschan is designed to locate the business cycle peaks and troughs, so you don't want to input them. The most basic use with your data would be:

@BRYBOSCHAN PRUEBA 2005:6 2011:12

If you want to save dummy series with the peaks and troughs, you would do that with

@BRYBOSCHAN(PEAKS=PEAKS,TROUGHS=TROUGHS) PRUEBA 2005:6 2011:12
hardmann
Posts: 252
Joined: Sat Feb 26, 2011 9:49 pm

Input of @BryBoschan

Unread post by hardmann »

Dear Tom:

While we call the @BryBoschan, whether its input (series) is level, or detrend?

Best regard.
Hardmann
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: Input of @BryBoschan

Unread post by TomDoan »

hardmann wrote:Dear Tom:

While we call the @BryBoschan, whether its input (series) is level, or detrend?

Best regard.
Hardmann
Levels. It uses its own definition for the trend.
luching
Posts: 64
Joined: Mon Jun 07, 2010 4:05 pm

Re: BRYBOSCHAN (Bry-Boschan Business Cycle Dating)

Unread post by luching »

Hi Tom: I have a small clarification on BBQ. I thought it picks out pairs of turning points, a peak and a trough. However, for some series while running the code, I could get only a peak but not a trough. Does this mean that I should ignore that point? Or can I play around with the censoring rules to see if I can get all pairs?
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: BRYBOSCHAN (Bry-Boschan Business Cycle Dating)

Unread post by TomDoan »

luching wrote:Hi Tom: I have a small clarification on BBQ. I thought it picks out pairs of turning points, a peak and a trough. However, for some series while running the code, I could get only a peak but not a trough. Does this mean that I should ignore that point? Or can I play around with the censoring rules to see if I can get all pairs?
It shouldn't have consecutive peaks or consecutive troughs by the time it's done. It's possible to have those at an intermediate stage, but those get eliminated as it works through the algorithm.
Post Reply