Threshold Structural 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

nasa
Posts: 39
Joined: Tue Aug 02, 2016 12:41 am

Re: Threshold Structural VAR

Postby nasa » Sun Jul 16, 2017 6:15 am

Hi,
I am using eviews 10 demo license and I have installed thsvar add in but once I specify the thsvar model using the box options and press ok using the box options it is telling me that Eviews 10 has stopped working.

What is the problem,please?

best

dakila
Posts: 479
Joined: Tue Nov 24, 2015 4:57 pm

Re: Threshold Structural VAR

Postby dakila » Sun Jul 16, 2017 2:27 pm

I think problem is that you are using the demo version.

nasa
Posts: 39
Joined: Tue Aug 02, 2016 12:41 am

Re: Threshold Structural VAR

Postby nasa » Mon Jul 17, 2017 2:20 am

Ok, but there was a time using the demo version of Eviews 9,I was using threshold svar add in without any problem.

Thanks.

Best

yizhuorui
Posts: 1
Joined: Sun Aug 06, 2017 8:52 am

Re: Threshold Structural VAR

Postby yizhuorui » Sun Aug 06, 2017 7:24 pm

Hello, i want to know the code of THSVAR,when i select File/open/Programs in add-in folder... and open the THSVAR folder and click thsvar.prg,why the dialog display "Encrypted program". How should i do if i want to understand the thsvar.prg(in order to modify THSVAR code to adapt my model )? Thanks.

EViews Matt
EViews Developer
Posts: 557
Joined: Thu Apr 25, 2013 7:48 pm

Re: Threshold Structural VAR

Postby EViews Matt » Mon Aug 07, 2017 8:59 am

Hello,

Addin authors have the option to encrypt and conceal their programs if they wish. This ability isn't unique to addins, any EViews program can be encrypted. If you're interested in how a program works and/or obtaining the unencrypting source for the program, you can contact the addin author through the appropriate forum or via any contact information provided with the addin's documentation. Just keep in mind that the author chose to encrypt the program for a reason, so there's no guarantee he or she will share the source with you.

nasa
Posts: 39
Joined: Tue Aug 02, 2016 12:41 am

Re: Threshold Structural VAR

Postby nasa » Sat Aug 12, 2017 7:24 am

Hi,

In the balke paper,it says the threshold value is the one that maximizes the log determinant of the structural residuals.But here ,in the add in ,I read the result as specification that minimizes the log determinant.So,is there any difference between this two points? could you give me a general intuition about this,please?
And the second I think we are also using the Tsay test that is avg- wald and exp-wald besides to the hansen test that is sup-wald or LR-sup.Hence,can you give me also some ideas about the Hansen and Tsay tests,please? What exactly are we doing with regard to these two tests?

Best

EdgarM
Posts: 4
Joined: Fri Jul 28, 2017 12:00 am

Re: Threshold Structural VAR

Postby EdgarM » Sun Aug 13, 2017 4:18 pm

Hello, thanks for the useful add-in.

Is there a way to calculate a 1 percent shock instead of a 1 standard deviation shock?

The problem is that my threshold variable is inflation growth rate, and it's standard deviation is 0.59, so doing a 59% shock is not an useful exercise :P

Is the response measured in standard deviations too?

Thanks in advance,
Best regards

dakila
Posts: 479
Joined: Tue Nov 24, 2015 4:57 pm

Re: Threshold Structural VAR

Postby dakila » Mon Aug 14, 2017 5:44 am

In the balke paper,it says the threshold value is the one that maximizes the log determinant of the structural residuals.But here ,in the add in ,I read the result as specification that minimizes the log determinant.So,is there any difference between this two points? could you give me a general intuition about this,please?


No. there is no difference between these two points.

And the second I think we are also using the Tsay test that is avg- wald and exp-wald besides to the hansen test that is sup-wald or LR-sup.Hence,can you give me also some ideas about the Hansen and Tsay tests,please? What exactly are we doing with regard to these two tests?


I don't know Tsay test.

dakila
Posts: 479
Joined: Tue Nov 24, 2015 4:57 pm

Re: Threshold Structural VAR

Postby dakila » Mon Aug 14, 2017 5:51 am

Is there a way to calculate a 1 percent shock instead of a 1 standard deviation shock?

I think there is no way to do so. Because Balke's Threshold VAR model is nonlinear. So it is not scalable.

The problem is that my threshold variable is inflation growth rate, and it's standard deviation is 0.59, so doing a 59% shock is not an useful exercise
Is the response measured in standard deviations too?


If your variable is in log then response is in percentage change. I think 0.59 is 0.59 % shock.

nasa
Posts: 39
Joined: Tue Aug 02, 2016 12:41 am

Re: Threshold Structural VAR

Postby nasa » Wed Aug 16, 2017 12:52 am

Hi,
when i want to run the Add in in eviews 10 demo, it tells me that syntax error.What is that,please?

Best

EdgarM
Posts: 4
Joined: Fri Jul 28, 2017 12:00 am

Re: Threshold Structural VAR

Postby EdgarM » Wed Aug 16, 2017 2:29 pm

Thank you Dakila for your answer.

Is there a way to obtain the VAR estimation for each regime instead of different outputs for each dependent variable?
It will be useful to get the variance/covariance matrix for each regime, also the R-squared of the VAR estimation.

Best regards,
Edgar

dakila
Posts: 479
Joined: Tue Nov 24, 2015 4:57 pm

Re: Threshold Structural VAR

Postby dakila » Thu Aug 17, 2017 4:34 pm

when i want to run the Add in in eviews 10 demo, it tells me that syntax error.What is that,please?


It is a bug for Eviews 10. It is fixed. Just update the thsvar add-in.

dakila
Posts: 479
Joined: Tue Nov 24, 2015 4:57 pm

Re: Threshold Structural VAR

Postby dakila » Thu Aug 17, 2017 4:40 pm

Is there a way to obtain the VAR estimation for each regime instead of different outputs for each dependent variable?


It is indeed the VAR estimation. If read any textbook on VAR, it will tell that VAR estimation equal to OLS estimation of each dependent variable equation.

nasa
Posts: 39
Joined: Tue Aug 02, 2016 12:41 am

Re: Threshold Structural VAR

Postby nasa » Sat Aug 19, 2017 7:02 am

Hi,

What is the degree of freedom adjustment? The default value in the dialog box is 0.Can I simply estimate my threshold SVAR model as in the default value with out modification to the degree of freedom,please? What would be the implication of this for my thsvar model?

Best ,

dakila
Posts: 479
Joined: Tue Nov 24, 2015 4:57 pm

Re: Threshold Structural VAR

Postby dakila » Sat Aug 19, 2017 2:58 pm

The degrees of freedom adjustment is used to compute the threshold value which is excluded at the beginning and the end of sample.
The formulae: b = ob*(end-start+1)+nvar-dfa
- ob = fraction of buffer period
- start = start of sample
- end = end of sample
- nvar = number of variable
- dfa = degrees of freedom


Return to “Add-in Support”

Who is online

Users browsing this forum: No registered users and 9 guests