Page 1 of 1

subscript indices

PostPosted: Wed Nov 25, 2009 3:18 am
by kaz
Hi,

I have been getting the following error message;

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

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

Error in ==> resol at 101
[dr, info, M_,iptions_,oo_]=dr1(dr,check_flag,M_,options_oo_);

Error in ==> check at 48
[dr, info]=resol(oo_.steady_state,1);

Error in ==> p1b at 387 // "p1b" is my mod file name.
check;

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

Someone who had the same problem and posted before said the problem had been solved once he reduced the number of parameters.

I was wondering if the reduction was a/the solution then some of parameters should be derived from the definition instead of
obtained numerically.

Or should I look at other potential flaws?

Thanks,
Kaz

Re: subscript indices

PostPosted: Wed Nov 25, 2009 8:20 am
by AssiaEzzeroug
Hi,

could you post your mod-file plz?

thx

Re: subscript indices

PostPosted: Wed Nov 25, 2009 11:35 am
by kaz
Hi,

Please find two attached files. One is a mod file and the other is a data file.

Thanks,
Kaz

Re: subscript indices

PostPosted: Wed Nov 25, 2009 3:32 pm
by AssiaEzzeroug
hi,

the rank conditions given by the instruction "check" are not satisfied. Try to check the timing of your model variables.

best

Re: subscript indices

PostPosted: Thu Nov 26, 2009 12:38 pm
by kaz
Hi,

Thanks for your suggestion.

I checked the timing but I'm still getting the same message.

Is there any other thing I should check?


Thanks,
Kaz

Re: subscript indices

PostPosted: Thu Nov 26, 2009 1:06 pm
by AssiaEzzeroug
Hi,

if the timing of your model is good then maybe you should check the calibration of certain parameters. Sometimes it can lead to such an issue as well.

Best

Re: subscript indices

PostPosted: Thu Nov 26, 2009 6:04 pm
by reubenpjacob
i have got this error message when not all parameters that you want to estimate are declared.

Re: subscript indices

PostPosted: Thu Nov 26, 2009 8:26 pm
by kaz
Hi,

Thank you, all.

I will look through the parameter settings and try again.

Thanks, again.


Best,
Kaz