On 19 April 2010 06:04, flipha23 <neungsoo...@gmail.com> wrote:

>
> Hi. I am new here, and I am writing this Winbugs code with BRugs.
>

<snip>

When I run this I get this message.
> model is syntactically correct
> data loaded
> array index is greater than array upper bound for a1
> [1] "C:\\DOCUME~1\\Owner\\LOCALS~1\\Temp\\RtmpNvSdyb/inits1.txt"
> Initializing chain 1: model must be compiled before initial values loaded
> model must be initialized before updating
> model must be initialized before DIC an be monitored
> Error in samplesSet(parametersToSave) :
>  model must be initialized before monitors used
>
> I checked the main effects alone, and it works fine, so I don't really
> understand why it's saying, "array index is greater than array upper bound
> for a1."
> Anyone who could help me with this would be greatly appreciated.
> Thanks.
>
> I wonder if it meant "array index is greater than array upper bound
for a12.", nad the 2 got chopped off. Anyway, try to compile without your
arrays (u and a12), and see which one causes the trap. After that, you might
have to do some digging to find the problem. Sometimes you have to check the
data files that are saved, to make sure they contain what you want.

BTW, you have some loops written as 2:13. It might be better to write them
as 2:Lagegp, just for consistency.

Bob

-- 
Bob O'Hara

Biodiversity and Climate Research Centre
Senckenberganlage 25
D-60325 Frankfurt am Main,
Germany

Tel: +49 69 798 40216
Mobile: +49 1515 888 5440
WWW:   http://www.bik-f.de/root/index.php?page_id=219
Blog: http://blogs.nature.com/boboh
Google Wave: rni....@googlewave.com
Journal of Negative Results - EEB: www.jnr-eeb.org

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to