Page 6 of 9

Re: Time varying SVAR

Posted: Thu Dec 22, 2016 8:21 pm
by dakila
how to put more than one options in the command line?

For example:

Code: Select all

tvsvar(comp=1, mb=500) 2 40 datevec interest @ inflation unemployment interest

Re: Time varying SVAR

Posted: Thu Dec 22, 2016 8:37 pm
by dakila
I am getting the error message" Matrix vector index out of range."


if you put 40 for the training sample, then you can't select 2004m02. Because your data starts with Nov 2001, first 40 obserbations (until Feb 2005) and lag will be used for the training sample. So 2004m02 is out of range.
If you choose 24 for the training sample, it is possible to include 2004m02. However, this number is too short to run regress.

For example, the following code works for me:

Code: Select all

svector dtsel=@wsplit("2004m02 2009m02 2016m02")
tvsvar 2 24 dtsel pcco @ pcco pciag pcibz

Re: Time varying SVAR

Posted: Fri Dec 23, 2016 10:11 am
by adrangi
Thanks much. Makes perfect sense. I'll try it now. I may forget about the first date. Best, Bahram

Re: Time varying SVAR

Posted: Sat Dec 24, 2016 5:49 am
by ali_Economist
Hi,

Thanks for helping me on the previous issue. Now i got a problem and it is giving message "Matrix dimensions too large" if I drop a variable it works but then i don,t want to drop any variables and include all 5. I am trying to run this code.

svector dtsel=@wsplit("08/01/2008 01/02/2009 12/23/2016")
tvsvar(comp=1, mb=1000, nb=200, horizon=48) 2 102 dtsel lnjapan @ lnvnindex lnset lnse180interp hangseng lnjapan

Please help, Thanks in anticipation.

Regards

Ali

Re: Time varying SVAR

Posted: Sun Dec 25, 2016 1:04 pm
by adrangi
svector dtsel=@wsplit("2004m02 2009m02 2016m02")
tvsvar 2 24 dtsel pcco @ pcco pciag pcibz

Hi. This worked well. Two questions/issues:

1. I was using the TVSVAR Add-in. Was getting error message "sizes do not match in matrix function." Where are codes like the one above located?
2. Perhaps due to the nature of my variables, more that 3 resulted in near singular matrix. Have you tried with more that 3 variables? I noticed on the discussion thread that someone else had a similar issue. Didn't find the response to it though.

Thanks much. Best, Bahram

Re: Time varying SVAR

Posted: Mon Jan 02, 2017 9:53 pm
by luca1s
Hi

Many thanks for for creating this add-in. I went through the model and the example but was left with some questions.

The program easily reproduces the figures for the IRFs and their comparison, as well as the figures for the "Posterior mean, 16th and 84th pctiles of the standard deviation of (a) residuals of the inflation equation, (b) residuals of the unemployment equation and (c) residuals of the interest rate equation or monetary policy shocks."
Where I take the "standard deviation of residuals of the ... equation" is the time-varying aspect that reflects the time variation of the simultaneous relations among the variables of the model and heteroskedasticity of the innovations.

However I'm struggling to reproduce the time-series that show the responses to a 1% permanent increase of inflation (with 16th and 84th pctiles) (a) Simultaneous response, (b) response after 10 quarters, (c) response after 20 quarters, (d) response after 60 quarters. However it is exactly this that I'm after.

Is there a method to get this using this add-in?

Re: Time varying SVAR

Posted: Tue Jan 03, 2017 4:25 pm
by dakila
Not yet. I will try to add this function.

Re: Time varying SVAR

Posted: Fri Feb 17, 2017 4:37 pm
by adrangi
Hi. I'm using TVSVAR. I'd like o know which paper(s) are the basis for the TVSVAR program in Eviews. More specifically, I assume the following:
1. both the coefficient and variance covariance of the shocks are time variant.
2. Some type of restrictions are imposed on the reduced form estimated parameters in order to get back to the structural model. What were the restrictions? I assume the restrictions are similar to recursive restrictions in standard type of VARS. I hope these are clear. Please let me know. Much appreciated. Best, BA

Re: Time varying SVAR

Posted: Sat Feb 18, 2017 6:20 am
by dakila
Primiceri 2005. Yes your assumptions are right.

Re: Time varying SVAR

Posted: Tue Feb 21, 2017 3:26 am
by linea
Dear Admin,

does this add-in incorporate the Del Negro and Primiceri (2015),Rev Econ Stud, 82 (4): 1342-1345 corrigendum?

If not, would it be possible for you to correct the add-in in that sense?

Thanks in advance.

Re: Time varying SVAR

Posted: Tue Feb 21, 2017 6:12 am
by dakila
Yes.

Re: Time varying SVAR

Posted: Tue Feb 21, 2017 6:41 am
by linea
"Yes" as in "yes, it does incorporate Del Negro and Primiceri (2015)" or yes as "we will correct for that" ? :)

Re: Time varying SVAR

Posted: Tue Feb 21, 2017 3:33 pm
by dakila
It uses the corrected algorithm of Del Negro and Primiceri (2015).

Re: Time varying SVAR

Posted: Thu May 25, 2017 4:34 am
by ali_Economist
Hi, I only get the impulses, how I can get some estimates like in the Permiceri paper?

Re: Time varying SVAR

Posted: Thu Jun 01, 2017 7:50 am
by ali_Economist
Hi, can you please reply to my question, I want to get more than just impulse responses, like some of the estimates permiceri 2005 paper presented in the appendix of his paper? please help.