Page 1 of 1

problem with error messages

PostPosted: Thu Feb 28, 2008 10:51 pm
by Zsoka
I have a problem with a .mod file. I have a linear modell and I wanted to solve it with dynare, but MATLAB wrote:

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

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

Error in ==> resol at 56
[dr,info] = dr1(dr,check_flag);

Error in ==> check at 18
[dr, info] = resol(ys_,1);

Error in ==> modell5 at 185
check;

Error in ==> dynare at 26
evalin('base',fname) ;

and I just don't know what should I do with these messages. I attach my .mod file, and I hope there's someone who can help me.

Zsoka

Problem With error messages

PostPosted: Sat Mar 29, 2008 7:15 am
by olguinma
Dear all:

I have the same error message:

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

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

Error in ==> resol at 56
[dr,info] = dr1(dr,check_flag);

Error in ==> stoch_simul at 47
[dr_, info] = resol(ys_,0);

Error in ==> chumacero1 at 177
info=stoch_simul(var_list_);

Error in ==> dynare at 26
evalin('base',fname) ;

Does anyone can explain me the reason of this message? How can it be removed in order to run completely?

Thanks.

Olguinma

PostPosted: Tue Apr 01, 2008 4:23 pm
by bigbigben
It looks like the problem is related with the setting about "Y" and "Z" in your model. It is weird that k0 for this two variables equals zero. We have to wait for the composers of dynare to tell us what the purpose of "_iy", "k0" and "k1" is in Dynare.

Good Luck.

PostPosted: Thu Apr 10, 2008 2:45 pm
by measilva
Hey Guys,

I did not have time to take a look at your codes, but I had a similar problem with my own code. In Dynare v.3 all variables must appear in the current period. When one of the variables appear only in the lead or lag period, dynare shows a message error. It seems that Dynare V.4 ignores this restriction. So you guys can either change the model (including dummies, changing the timming, etc..) or try to use v.4.

http://www.dynare.org/manual/re07.html *

Hope this will help.

Cheers

NB: * new url