Matrix iy_

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.

Matrix iy_

Postby nakov » Tue Sep 04, 2007 8:33 am

Hi,
could someone please tell me what is stored in matrix iy_
(especially in the second row)?

I run into the following error when checking the BK conditions:

??? Subscript indices must either be real positive integers or logicals.
Error in ==> dr1 at 139
b = jacobia_(:,k0);

It seems to be related to the fact that the second row of iy_ contains a zero (since I have ykmin_=1).

I'd appreciate your help!

Anton
nakov
 
Posts: 12
Joined: Mon Aug 01, 2005 9:32 am

Postby MichelJuillard » Tue Sep 04, 2007 7:10 pm

Hi Anton,

matrix iy_ notes at which lag does a variable appear in the model.
When there is only one lag and one lead, the matrix has 3 rows.
The first rows describe which variables appear with a lag, the second row which variable appear in the model at the current period, the third one, which variable appears with a lead.
The columns represent the variables in alphabetical order (in version 3).

In your case, one variable doesn't appear at the current period. Dynare version 3 requires that all variables appear at the current period. For most models, it is a reasonable consistency requirement.
But not for all, Dynare version 4 dropped that requirement.

Kind regards

michel
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am

Postby nakov » Wed Sep 05, 2007 7:22 am

Thank you very much, this is very useful!
nakov
 
Posts: 12
Joined: Mon Aug 01, 2005 9:32 am

Postby KarlWalentin » Fri Sep 21, 2007 4:10 pm

I had the same problem, i.e. a model where two variables did not appear in the current period (b/c of time-to-plan). To work around the restriction in Dynare 3 I introduced dummy variables and set them equal to the current period value of the variables that didn't previously appear in the current period.

This is rather ugly though. Is there a better way to work around this restriction?
KarlWalentin
 
Posts: 16
Joined: Wed Feb 21, 2007 4:22 pm

Postby bigbigben » Thu Apr 10, 2008 5:46 pm

Although Michel make the meaning clear, but I have trouble to find the correspondence between iy_ (or M_.lead_lag_incidence in Dynare V4). For example, there are only 10 variables (9 endogenous and one exogenous), but some number like 11, 12,13,14 showing up in iy_. I don't know what they are for. Do you guys have any idea on it?
bigbigben
 
Posts: 171
Joined: Sun May 28, 2006 1:19 am

Re: Matrix iy_

Postby olena7 » Wed Mar 25, 2009 8:30 pm

I am working with the version 4.0.2, and apparently it still has the same issue - each variable must appear in the "current" period at least once in the code.
olena7
 
Posts: 18
Joined: Wed Mar 25, 2009 8:28 pm

Re: Matrix iy_

Postby StephaneAdjemian » Fri Mar 27, 2009 4:00 pm

Hi, This has been corrected yesterday in branches/4.0 (under our subversion server). The correction will be in dynare version 4.0.4 (to be released in a couple of weeks). Beware that in most cases the absence of a variable in the current period is the consequence of a model misconception or an coding error in the mod file.

Best, Stéphane.
Stéphane Adjemian
Université du Maine, GAINS and DynareTeam
https://stepan.adjemian.eu
StephaneAdjemian
 
Posts: 429
Joined: Wed Jan 05, 2005 4:24 pm
Location: Paris, France.


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 12 guests