BaiPerron (Bai-Perron breakpoint test - Requires R)

For questions about EViews Add-ins available from the EViews Add-ins webpage. Note each add-in available on our webpage will have its own individual thread.

Moderators: EViews Gareth, EViews Moderator, EViews Esther

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13312
Joined: Tue Sep 16, 2008 5:38 pm

Re: BaiPerron (Bai-Perron breakpoint test - Requires R)

Postby EViews Gareth » Mon Mar 05, 2012 2:08 pm

You can't just install R by itself. You need to follow the instructions in the EViews documentation for installing and connecting R to EViews.
Follow us on Twitter @IHSEViews

Vibha
Posts: 4
Joined: Mon Mar 05, 2012 1:01 pm

Re: BaiPerron (Bai-Perron breakpoint test - Requires R)

Postby Vibha » Tue Mar 06, 2012 2:05 pm

thanks for the reply.
I followed the instructions and installed R accordingly. i created my regression using least squares method from Estimate equation option. When i run the add in, i get the message "R(for 'date') returned an unknown error". I am using closingprices as my dependent variable against time. the data was downloaded directly from a company's website and then imported from excel to eviews. I am sorry to bother you with elementary questions since i am not used to using Eviews. i am only using it to find the break date for the 2008 financial crisis. is it possible that it is happening because i might have imported my time series data the wrong way?

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13312
Joined: Tue Sep 16, 2008 5:38 pm

Re: BaiPerron (Bai-Perron breakpoint test - Requires R)

Postby EViews Gareth » Tue Mar 06, 2012 2:16 pm

Post your workfile.
Follow us on Twitter @IHSEViews

Vibha
Posts: 4
Joined: Mon Mar 05, 2012 1:01 pm

Re: BaiPerron (Bai-Perron breakpoint test - Requires R)

Postby Vibha » Wed Mar 07, 2012 5:27 am

ok. here it is. Thank u very much for the help:)
Attachments
daily prices for breakpoint .wf1
(44.21 KiB) Downloaded 482 times

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13312
Joined: Tue Sep 16, 2008 5:38 pm

Re: BaiPerron (Bai-Perron breakpoint test - Requires R)

Postby EViews Gareth » Wed Mar 07, 2012 8:59 am

The immediate problem is that R doesn't like having data called "date". If you rename your date variable to something else, it alleviates that problem. However the test still doesn't run properly. I can't tell what is causing the R code to fail.
Follow us on Twitter @IHSEViews

Vibha
Posts: 4
Joined: Mon Mar 05, 2012 1:01 pm

Re: BaiPerron (Bai-Perron breakpoint test - Requires R)

Postby Vibha » Thu Mar 08, 2012 9:52 am

hey,
Thanks for sparing some time to help me out:) I have finally been able to run it. i renamed the "date" variable and added another variable and it worked. I have been able to get the breakdate i was searching for. Thanks again^^

carsten appel
Posts: 1
Joined: Thu Mar 15, 2012 3:27 am

Re: BaiPerron (Bai-Perron breakpoint test - Requires R)

Postby carsten appel » Thu Mar 15, 2012 3:33 am

Thank you very much for at very useful thread so far.

I'm about to test around 80 series for breaks using this add-in. As I understand it, I will use: ls "series" c @trend when it looks like there is a trend, and: ls "series" c when it does not look like a trend. Is that about right?

best
Carsten

oval
Posts: 1
Joined: Thu Apr 12, 2012 7:13 pm

Re: BaiPerron (Bai-Perron breakpoint test - Requires R)

Postby oval » Thu Apr 12, 2012 7:22 pm

hi, everyone, I am just a newcomer
i have a question:
I want to use the bai breakpoint test to test whether a time series have some breakpoint, is it right?
I just see someone above replaying the test can be used only to test the equation coefficient?

I post my data, it is the sp500 return from 1989 to 2012, daily data.
would anyone do me a favor to test for me?
Attachments
sp.WF1
(101.19 KiB) Downloaded 444 times

Mila
Posts: 18
Joined: Thu Sep 22, 2011 12:54 pm

Re: BaiPerron (Bai-Perron breakpoint test - Requires R)

Postby Mila » Fri May 04, 2012 3:43 am

Hi I'm currently using the Bai Perron to test for multiple breaks. It seems to work fine (thanks Eviews!) but unlike say the Chow and Quandt Andrews test, I can't test for a subset of parameters..as far as I know, since it's at click and run without options. Is there a way I can do the subset test? Perhaps by tweaking the code - if available in Eviews?

Many thanks.

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13312
Joined: Tue Sep 16, 2008 5:38 pm

BaiPerron (Bai-Perron breakpoint test - Requires R)

Postby EViews Gareth » Fri May 04, 2012 3:57 am

I'm not sure if the R code supports subsets, but you could certainly take a look at the code to see.
Follow us on Twitter @IHSEViews

julia.luthor
Posts: 4
Joined: Sat May 05, 2012 10:57 am

Re: BaiPerron (Bai-Perron breakpoint test - Requires R)

Postby julia.luthor » Sat May 05, 2012 11:10 am

Hello all,

I am getting "unsupported data format passed to interpreter" error, when I run bai perron structural break test...My system is Win 7, eviews 7, and R 2.15.0.
How can I deal with this problem?
Thanks for your help in advance.

Julia
Last edited by julia.luthor on Sat May 05, 2012 10:25 pm, edited 1 time in total.

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13312
Joined: Tue Sep 16, 2008 5:38 pm

Re: BaiPerron (Bai-Perron breakpoint test - Requires R)

Postby EViews Gareth » Sat May 05, 2012 11:15 am

Perhaps you could post your workfile?
Follow us on Twitter @IHSEViews

julia.luthor
Posts: 4
Joined: Sat May 05, 2012 10:57 am

Re: BaiPerron (Bai-Perron breakpoint test - Requires R)

Postby julia.luthor » Sat May 05, 2012 11:21 am

Hi,
The file comes from the eviews 7's manual data. I am just discovering whether I could handle my work on eviews 7 platform.If it is possible, it will save me a lot of time.Eviews is very easy to use compared to other programs.

Thanks in advance.

J.
Attachments
basics.wf1
(61.59 KiB) Downloaded 436 times

julia.luthor
Posts: 4
Joined: Sat May 05, 2012 10:57 am

Re: BaiPerron (Bai-Perron breakpoint test - Requires R)

Postby julia.luthor » Sat May 05, 2012 11:37 am

it is a problem that stems from statconn.
i will try to fix.

julia.luthor
Posts: 4
Joined: Sat May 05, 2012 10:57 am

Re: BaiPerron (Bai-Perron breakpoint test - Requires R)

Postby julia.luthor » Sat May 05, 2012 1:08 pm

Now it works.

Thanks to eviews developers.

J.


Return to “Add-in Support”

Who is online

Users browsing this forum: No registered users and 16 guests