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 Po-Hung » Mon Jul 14, 2008 10:52 am

hi,

I got the following problem when doing stoch_simul.

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

what does it mean?

and does anyone tell me how to fix it?

really appreciate!
Po-Hung
 

Postby bigbigben » Mon Jul 14, 2008 2:34 pm

Check whether you define every variable or parameter before you use it. Also check if you value every parameter. If that is the case, you may want to switch back to version 3, the error message might be more informative.
bigbigben
 
Posts: 171
Joined: Sun May 28, 2006 1:19 am

Postby Po-Hung » Tue Jul 15, 2008 1:03 pm

thanks for your respond.

I check the defined variable and parameters, and still got the same

problem.

Here is another question: my computed steady states of 3 variables are

negative. Does it result in the subcript indices problem?!

thank you!
Po-Hung
 

Postby p.gelain » Mon Jul 28, 2008 12:35 pm

Hi

I had the error message

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

when I defined a variable on the top of the code but I did not use it in any of the equations of the model. The number of the equations was equal to the number of declared variables because I put a redundant equation as a mistake.

Paolo
p.gelain
 
Posts: 61
Joined: Wed Jul 11, 2007 9:13 pm
Location: Norges Bank

Subscript indices problem

Postby amoscp2002 » Wed Jul 30, 2008 5:00 pm

I am also getting this message. I tried checking based on what the previous post said, but have not had any success. I have attached the mod file. Any help will be greatly appreciated.
AP
Attachments
jmp.mod
(3.4 KiB) Downloaded 103 times
amoscp2002
 
Posts: 3
Joined: Mon Jul 07, 2008 12:49 am


Return to Dynare help

Who is online

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