A while ago, Dr Geir Storvik posted the follow questions: Is there a way to
know ín which order the variables are updated or evaluated in Bugs/Winbugs?
Or is there a way of telling Bugs the order to update? He got the following
answers (thanks to those answering), indicating that Bugs and Winbugs do
this differently: In classic BUGS, the variables are updated in reverse
order of their declaration. See the manual addendum for version 0.6. WinBUGS
updates variables in alpha-numeric order and in order of indices for
vectors, matrices etc. A small check by himself in bugs indicates that
indices of vector are
updated in reverse order in WinBugs. Based on this protocol, what would then
be the evaluation sequence In WINBUGS of the codes
for (t in 1:3) {
for (sex in 1:2) {
N[sex,t] <- R;
}
for (sex in 1:2) {
B[sex,t] <- N[sex,t];
}
}
Should the evaluation sequence be
B[2,3], B[2,2], B[2,1], B[1,3], B[1,2], B[1,1]; N[2,3], N[2,2], N[2,1],
N[1,3], N[1,2], N[1,1]?
If this is the case, this piece of codes does not work, because the values
of matrix B are not defined properly.
I would be most grateful if anybody could comment?
Best wishes
Yongshun Xiao
SARDI Aquatic Sciences Centre
2 Hamra Avenue, West Beach
Adelaide, SA, Australia 5024
Email [log in to unmask]
Phone + 61 8 8200 2434
Fax + 61 8 8200 2481
-------------------------------------------------------------------
To mail the BUGS list, mail to [log in to unmask]
You can search old messages at www.jiscmail.ac.uk/lists/bugs.html
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
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]
|