subscript indices

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.

subscript indices

Postby kaz » Wed Nov 25, 2009 3:18 am

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
kaz
 
Posts: 14
Joined: Wed Sep 09, 2009 5:28 am

Re: subscript indices

Postby AssiaEzzeroug » Wed Nov 25, 2009 8:20 am

Hi,

could you post your mod-file plz?

thx
AssiaEzzeroug
 
Posts: 83
Joined: Tue Nov 24, 2009 3:48 pm

Re: subscript indices

Postby kaz » Wed Nov 25, 2009 11:35 am

Hi,

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

Thanks,
Kaz
Attachments
p1eviews.XLS
datafile
(49 KiB) Downloaded 63 times
p1b.mod
mod file
(7.34 KiB) Downloaded 63 times
kaz
 
Posts: 14
Joined: Wed Sep 09, 2009 5:28 am

Re: subscript indices

Postby AssiaEzzeroug » Wed Nov 25, 2009 3:32 pm

hi,

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

best
AssiaEzzeroug
 
Posts: 83
Joined: Tue Nov 24, 2009 3:48 pm

Re: subscript indices

Postby kaz » Thu Nov 26, 2009 12:38 pm

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
kaz
 
Posts: 14
Joined: Wed Sep 09, 2009 5:28 am

Re: subscript indices

Postby AssiaEzzeroug » Thu Nov 26, 2009 1:06 pm

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
AssiaEzzeroug
 
Posts: 83
Joined: Tue Nov 24, 2009 3:48 pm

Re: subscript indices

Postby reubenpjacob » Thu Nov 26, 2009 6:04 pm

i have got this error message when not all parameters that you want to estimate are declared.
reubenpjacob
 
Posts: 133
Joined: Fri Oct 06, 2006 3:23 pm
Location: Reserve Bank of New Zealand

Re: subscript indices

Postby kaz » Thu Nov 26, 2009 8:26 pm

Hi,

Thank you, all.

I will look through the parameter settings and try again.

Thanks, again.


Best,
Kaz
kaz
 
Posts: 14
Joined: Wed Sep 09, 2009 5:28 am


Return to Dynare help

Who is online

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