dr1 error

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.

dr1 error

Postby larry » Sun Feb 11, 2007 8:37 pm

When I run my code, I get the following error message:

??? Subscript indices must either be real positive integers or logicals.

Error in ==> dr1 at 139
b = jacobia_(:,k0);


The vector, k0, contains a number of zeros. I've probably not set up the model correctly in my mod file. What should I look for?
Larry Christiano
larry
 
Posts: 7
Joined: Sun Feb 11, 2007 8:31 pm
Location: northwestern university

Postby MichelJuillard » Sun Feb 11, 2007 9:40 pm

Hi Larry,

some variables in your model don't show up at the current period. Whenever you have a zero in k0, the corresponding variable is missing at period 't'
In version 3, the variables are ordered alphabeticaly (see lgy_)

Kind regards

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


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 5 guests