Page 1 of 4

TVAR (Threshold VAR)

Posted: Tue Oct 25, 2011 2:16 pm
by EViews Gareth
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.

Re: TVAR (Threshold VAR)

Posted: Wed Oct 26, 2011 3:15 am
by samijo
Upon trying to add it, it gives an error that it's not available!

Re: TVAR (Threshold VAR)

Posted: Wed Oct 26, 2011 7:56 am
by EViews Gareth
Sorry, try now.

Re: TVAR (Threshold VAR)

Posted: Tue Nov 01, 2011 9:39 am
by Mihaain
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!

Re: TVAR (Threshold VAR)

Posted: Tue Nov 01, 2011 9:51 am
by EViews Gareth
The R-code reported an error. Hard to know what that error is without seeing it.

Re: TVAR (Threshold VAR)

Posted: Mon Nov 07, 2011 7:28 am
by gordeza
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

TVAR (Threshold VAR)

Posted: Mon Nov 07, 2011 7:50 am
by EViews Gareth
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.

Re: TVAR (Threshold VAR)

Posted: Mon Nov 07, 2011 8:36 am
by sweivE
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?

Re: TVAR (Threshold VAR)

Posted: Mon Nov 07, 2011 8:47 am
by EViews Gareth
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 :(

Re: TVAR (Threshold VAR)

Posted: Tue Nov 08, 2011 7:03 am
by gordeza
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!

TVAR (Threshold VAR)

Posted: Tue Nov 08, 2011 7:44 am
by EViews Gareth
Could you post your workfile?

Re: TVAR (Threshold VAR)

Posted: Tue Nov 08, 2011 5:19 pm
by gordeza
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.

Re: TVAR (Threshold VAR)

Posted: Tue Nov 08, 2011 5:31 pm
by EViews Gareth
I ran the Add-in with those two variables and it worked with 2, 3 and 4 lags.

Re: TVAR (Threshold VAR)

Posted: Wed Nov 09, 2011 5:11 am
by gordeza
Somehow it's finally working.
Thanks so much!

Re: TVAR (Threshold VAR)

Posted: Thu Nov 10, 2011 8:40 am
by Scalper
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