I am running Monte Carlo simulations using Classic Bugs.
I want to read ascii files into BUGS. However, since I am doing
simulations, the files will not always have a uniform length. The largest
number of observations will be 1000. How can I tell BUGS to expect up to
1000 observations per variable, but that fewer than 1000 is possible?
I tried setting the array lengths to be 1000 in the variable definition
section of the BUGS code:
const N = 1000;
var y[N], x1[N], x2[N];
data y, x1, x2 in "data.file";
However, in the first simulated dataset there are only 737 observations.
When I execute the BUGS code, I receive the following error message:
Error in file: data.file
$
at line 738 column 1
Expected entry in data file to be either a number or NA.
Can anyone suggest how to accomplish this?
Thanks in advance,
Peter Austin
-------------------------------------------------------------------
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
|