It looks like a data formatting problem. In your code, debt has two
indices, "i" and "t". Because of this, BUGS assumes that debt is a a
two-dimensional matrix. On the other hand, in your data, debt is a single
column, a one-dimensional array. This inconsistency is causing the error.
I believe that you have the same problem with all five of your data
variables, it just happens that BUGS gives you an error for debt, because
that is the first place that BUGS notices this problem.
You need to either:
1) Rewrite your code so that it treats debt (and the rest of the data) as
one-dimensional arrays.
OR
2) Reorganize your data, so that each of your data variables is a 2-D
array.
You may be able to get more specific advice on data formatting if you give
more info on the way you are using BUGS. Are you running BUGS through a
window in OpenBUGS or WinBUGS? Are your running BUGS from S+ or R?
Tim Handley
-------------------------------------------------------------------
This list is for discussion of modelling issues and the BUGS software.
For help with crashes and error messages, first mail [log in to unmask]
To mail the BUGS list, mail to [log in to unmask]
Before mailing, please check the archive at www.jiscmail.ac.uk/lists/bugs.html
Please do not mail attachments to the list.
To leave the BUGS list, send LEAVE BUGS to [log in to unmask]
If this fails, mail [log in to unmask], NOT the whole list
|