TVAR (Threshold VAR)

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: 11368
Joined: Tue Sep 16, 2008 5:38 pm

TVAR (Threshold VAR)

Postby EViews Gareth » Tue Oct 25, 2011 2:16 pm

This thread is about the TVAR Add-in that estimates a Threshold VAR using the R package tsDyn. You will need R to run this Add-in.
Follow us on Twitter @IHSEViews

samijo
Posts: 37
Joined: Thu Sep 18, 2008 12:15 pm
Location: CO. USA

Re: TVAR (Threshold VAR)

Postby samijo » Wed Oct 26, 2011 3:15 am

Upon trying to add it, it gives an error that it's not available!

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

Re: TVAR (Threshold VAR)

Postby EViews Gareth » Wed Oct 26, 2011 7:56 am

Sorry, try now.
Follow us on Twitter @IHSEViews

Mihaain
Posts: 2
Joined: Mon Nov 08, 2010 2:54 am

Re: TVAR (Threshold VAR)

Postby Mihaain » Tue Nov 01, 2011 9:39 am

Hello,

I`m trying to estimate a TVAR model, but i get the following error: R(for 'test<-TVAR(g, 2, include="const"model="TAR",thhresh=1)') returned an error: evaluation stopped because of an error!

Any idea how to pass this error?

Thanks!

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

Re: TVAR (Threshold VAR)

Postby EViews Gareth » Tue Nov 01, 2011 9:51 am

The R-code reported an error. Hard to know what that error is without seeing it.
Follow us on Twitter @IHSEViews

gordeza
Posts: 10
Joined: Mon Jan 05, 2009 11:10 pm

Re: TVAR (Threshold VAR)

Postby gordeza » Mon Nov 07, 2011 7:28 am

Hi great people, I'm trying to run TVAR with the new add-in but keep seeing this error message "noexternal connection is open". I've R and I've tried to run tsDyn although I'm not s sure whether I've done the later right (I mean tsDyn).
Can anyone tell me what the above error mean and how to have tsDyn work (if that's the culprit as I suspect it to be)?
Thanks in advance.
Gore

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

TVAR (Threshold VAR)

Postby EViews Gareth » Mon Nov 07, 2011 7:50 am

Sounds like you haven't set up the R connection in EViews properly. Please see the EViews manual for more information on how to do so.
Follow us on Twitter @IHSEViews

sweivE
Posts: 18
Joined: Thu Mar 03, 2011 5:21 am

Re: TVAR (Threshold VAR)

Postby sweivE » Mon Nov 07, 2011 8:36 am

I got the same error like gordeza. I think its because the 'tvar' command cannot handle NA's as inputs. For instance, I tried to estimate a variable in log difference - dlog(gdp), and since the first observation of dlog is an NA it returns an error.

Try to change the sample accordingly and it might work

Question to Gareth - is it possible to get from 'TsDyn' St. dev of the coefficients? and IRFs?

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

Re: TVAR (Threshold VAR)

Postby EViews Gareth » Mon Nov 07, 2011 8:47 am

NAs will not (at least shouldn't) cause an error of "noexternal connection is open". They will cause a separate error.

The R code doesn't have standard errors or IRFs :(
Follow us on Twitter @IHSEViews

gordeza
Posts: 10
Joined: Mon Jan 05, 2009 11:10 pm

Re: TVAR (Threshold VAR)

Postby gordeza » Tue Nov 08, 2011 7:03 am

I've re-installed everything and now I keep getting the very same error message that Mihaain mentioned early:
"R(for 'testtar<-TVAR(g, 1, include="const"model="TAR",thhresh=1)') returned an error: evaluation stopped because of an error".
Any idea on how to proceed?
Btw, I've Eviews 7.2 running on Windows 7 Ultimate 64 bit.
Thanks in advance!

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

TVAR (Threshold VAR)

Postby EViews Gareth » Tue Nov 08, 2011 7:44 am

Could you post your workfile?
Follow us on Twitter @IHSEViews

gordeza
Posts: 10
Joined: Mon Jan 05, 2009 11:10 pm

Re: TVAR (Threshold VAR)

Postby gordeza » Tue Nov 08, 2011 5:19 pm

Thanks in advance Gareth. Here is the file; which is the data from Tsay 1998 testing and modelling threshold models. I also hope the output displays the threshold.
Attachments
testtvar.WF1
(10.95 KiB) Downloaded 1208 times

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

Re: TVAR (Threshold VAR)

Postby EViews Gareth » Tue Nov 08, 2011 5:31 pm

I ran the Add-in with those two variables and it worked with 2, 3 and 4 lags.
Follow us on Twitter @IHSEViews

gordeza
Posts: 10
Joined: Mon Jan 05, 2009 11:10 pm

Re: TVAR (Threshold VAR)

Postby gordeza » Wed Nov 09, 2011 5:11 am

Somehow it's finally working.
Thanks so much!

Scalper
Posts: 35
Joined: Wed Jun 30, 2010 11:43 am

Re: TVAR (Threshold VAR)

Postby Scalper » Thu Nov 10, 2011 8:40 am

hello,

I've already installed the program R ,Eviews and its package as well the Add-ins TVAR. However, when i am put the variables and lags and when i click "ok" it shows up a error message " R is not installed, please check your eviews documentantion for instructions on installing in R"... but ive already installed.

Could you help me??
thanks

Yours sincerely,

Scalper


Return to “Add-in Support”

Who is online

Users browsing this forum: No registered users and 3 guests