Problem with winbug code

#1
I wanted to do a Bayesian Regression in Winbug. The error message I got was "array index is less than one". There was also a trap #060 message.The Winbug code and Data are given below. I will be grateful to get advice on how I can correct these to
make the system run.
Thanks

MODEL
{ for (i in 1:N) {
y~dnorm(mu,tau)
mu <- (b[0]+b[1]*x+b[2]*w)
}
b[0]~dnorm(0,0.0001)
b[1]~dnorm(0,0.0001)
b[2]~dnorm(0,0.0001)
tau~dgamma(0.001,0.001)
sigma2<-1/tau
}
DATA:
list(N=12),
y[] x[] w[]
24 20 5
48 10 6
26 10 5
10 34 3
15 20 1
10 28 2
58 6 10
45 6 9
67 4 15
34 10 6
54 10 5
30 5 10
END
 

Dason

Ambassador to the humans
#2
The error message is rather informative I think. Winbugs and R arrays start their indexing at 1. So putting an index of 0 isn't allowed. Change b[0], b[1], b[2] to b[1], b[2], b[3].