Bai Perron
Posted: Thu Oct 28, 2010 2:30 pm
I am a newbie to RATS, so please be indulgent if the question seems trivial to you. I would appreciate any help though. I am trying to run the Bai Perron multiple structural break test
This is what I have:
Cal(q) 1962
COMPUTE GSTART=1968:01, GEND = 2006:02 ;
all gend
OPEN DATA "/Volumes/PATRIOT/mywork/paper/rats program/dataset.xls"
DATA(FORMAT=XLS,ORG=COLUMNS) 1962:01 2006:03
comp nSeries = 4;
dec vect[series] y(nSeries) ;
set y(1) = 100*log(ydat/ydat{4}) ;
set y(2) = 100*log(x1dat/x1dat{4}) ;
set y(3) = 100*log(x2dat/x2dat{4}) ;
set y(4) = 100*log(x3dat/x3dat{4}) ;
To run the Bai-Perron test do I just add?
@BaiPerron (MAXBREAKS=10) y(1) 1966:01 2003:04
# y(2) y(3) y(4)
If I do that I get the following error message:
## SR10. Missing Values And/Or SMPL Options Leave No Usable Data Points
The Error Occurred At Location 0131 of BAIPERRON
Line 1073744393 of BAIPERRON
My question is whether I am setting the test correctly? I would appreciate if someone can post a sample of codes that will allow me to run the Bai-Perron test. Thanks in advance.
This is what I have:
Cal(q) 1962
COMPUTE GSTART=1968:01, GEND = 2006:02 ;
all gend
OPEN DATA "/Volumes/PATRIOT/mywork/paper/rats program/dataset.xls"
DATA(FORMAT=XLS,ORG=COLUMNS) 1962:01 2006:03
comp nSeries = 4;
dec vect[series] y(nSeries) ;
set y(1) = 100*log(ydat/ydat{4}) ;
set y(2) = 100*log(x1dat/x1dat{4}) ;
set y(3) = 100*log(x2dat/x2dat{4}) ;
set y(4) = 100*log(x3dat/x3dat{4}) ;
To run the Bai-Perron test do I just add?
@BaiPerron (MAXBREAKS=10) y(1) 1966:01 2003:04
# y(2) y(3) y(4)
If I do that I get the following error message:
## SR10. Missing Values And/Or SMPL Options Leave No Usable Data Points
The Error Occurred At Location 0131 of BAIPERRON
Line 1073744393 of BAIPERRON
My question is whether I am setting the test correctly? I would appreciate if someone can post a sample of codes that will allow me to run the Bai-Perron test. Thanks in advance.