I was getting an error in trying to sample from an element
of a 3d array.
David Spiegelhalter provided the answer - make the array of
interest the final element.
for (i in 1:N){
true[i] ~ dcat(p[]) ; # true status
for (j in 1:J){
obs[i,j] ~ dcat(error[j,true[i],]) ; # response
}
}
as opposed to :
obs[i,j] ~ dcat(error[j,,true[i]]) ; # response
Thanks.
yours sincerely
Andrew McCulloch
----------------------
Andrew McCulloch ([log in to unmask])
IRC, University of Essex, Colchester, UK CO4 3SQ
tel: +44 (0)1206 873901; fax: +44 (0)1206 873151
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|