Page 1 of 1

loading files, bry boschan algorhitm

PostPosted: Fri Jan 13, 2012 3:35 pm
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

Re: loading files, bry boschan algorhitm

PostPosted: Fri Jan 13, 2012 3:59 pm
by moderator
I think you just emailed the same question to us? If so, a couple of suggestions for future reference: If you are going to email a question to our technical support department, please don't post the same question here, as it can result in a lot of duplicated effort--pick one destination or the other. Second, when emailing tech support, please be sure to include your RATS serial number with your email.

As for the question, 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.

Regards,
Tom Maycock
Estima

Re: loading files, bry boschan algorhitm

PostPosted: Fri Jan 13, 2012 4:52 pm
by zulkas
sorry abot writing you and e-mail and a post in the forum at the same time. I´m just desperate about this. i am able to open my excel file with all the variables. my question is about what do i have to change in the bryboschan.src file to execute it with the time serie i want to. the words that are used in the code of procedure are very technical and i can´t understand ehat i have to do. Do i have to change the word series, for the serie i want to use? do i have to chanche the words start and end for the range of the series? i know that they are silly questions but i´m not used to use this kind of software, but i need it for the article i´m writing

Re: loading files, bry boschan algorhitm

PostPosted: Fri Jan 13, 2012 6:26 pm
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?

Re: loading files, bry boschan algorhitm

PostPosted: Sun Jan 15, 2012 10:03 am
by TomDoan
There are examples of the use of BryBoschan at:

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

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