MS-SBVAR A0-A+ cross restrictions

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

MS-SBVAR A0-A+ cross restrictions

Postby Valeria » Sat Sep 03, 2016 11:13 am

Dear all,

Can anyone help me in finding a way to impose A0- A+ cross-restrictions inside the 'ms_bvar' dynare codes?
More in detail, I need to impose a restriction applied to the second equation of my VAR with 4 variables, which involves a linear combination of 3 coefficients, one inside the A0 and two inside the A+ (all in the same equation):

A0(1,2)=A+(1,2)+A+(5,2)

which in terms of dynare codes should be:
'restriction equation 2, coeff(x,0)-coeff(x,1)-coeff(x,2)=0;'

However, Dynare gives me an error message saying 'SVAR_IDENTIFICATION: a single restrictions must affect either Qi or Ri, but not both
'
Reading the dynare options, I understand that the 'cross_restrictions' option inside the 'ms_estimation' code should allow this kind of restriction, but it continues to give me the same error.

Does anyone know, firstly, whether this kind of restriction is implementable inside these codes and, secondly, how to apply it?

Thanks,
Valeria
Valeria
 
Posts: 4
Joined: Sun Feb 07, 2016 10:08 pm

Re: MS-SBVAR A0-A+ cross restrictions

Postby jpfeifer » Sun Sep 04, 2016 3:08 pm

Could you please provide me with the full codes?
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: MS-SBVAR A0-A+ cross restrictions

Postby Valeria » Sun Sep 04, 2016 4:38 pm

Yes. This is the code:
SVEC.mod
(1.55 KiB) Downloaded 77 times
Valeria
 
Posts: 4
Joined: Sun Feb 07, 2016 10:08 pm

Re: MS-SBVAR A0-A+ cross restrictions

Postby Valeria » Wed Sep 07, 2016 4:02 pm

Dear Johannes,

did you find a way to go through the problem, looking at the codes?

Thanks,
Valeria
Valeria
 
Posts: 4
Joined: Sun Feb 07, 2016 10:08 pm

Re: MS-SBVAR A0-A+ cross restrictions

Postby jpfeifer » Wed Sep 07, 2016 4:43 pm

Dear Valeria,
I have contacted the responsible person and wait for feedback.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: MS-SBVAR A0-A+ cross restrictions

Postby jpfeifer » Mon Sep 12, 2016 3:19 pm

Hi, this is currently not possible. You can track the status of your request at https://github.com/DynareTeam/dynare/issues/1282
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: MS-SBVAR A0-A+ cross restrictions

Postby Valeria » Sun Sep 18, 2016 4:07 pm

Many thanks for transmitting my request.
If I got it well, to extend the identification to my case it's necessary to build manually the Wj matrices, as we already build Uj (from Qj) and Vj (from Rj). Since they are created inside the C codes according to the specification chosen, producing them should require to work inside C or matlab?
Best Regards,
Valeria
Valeria
 
Posts: 4
Joined: Sun Feb 07, 2016 10:08 pm

Re: MS-SBVAR A0-A+ cross restrictions

Postby StephaneLhuissier » Tue Jul 04, 2017 9:30 pm

Hi,

You could be able to do it by building manually Ui, Vi, and Wi matrices outside of Dynare. To do so, run once your *.mod file and stop it before it starts the estimation. Then, modify the file init_<name_of_your_file>.dat, and modify Ui, Vi, and Wi matrices with those you wanted (obtained outside of Dynare). Then, run directly the MEX file that Dynare uses to estimate your new model (see ms_estimation.m). Like that, Dynare will not recreate a new init_<name_of_your_file>.dat file and it will use the one you just modified.
Stéphane Lhuissier
CEPII
http://www.stephanelhuissier.eu
StephaneLhuissier
 
Posts: 20
Joined: Fri Oct 30, 2009 1:47 pm


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 11 guests