It seems to not be recognising a function you are calling within your model - taking a quick look you might want to check that table() is a function in OpenBUGS. g <- length(table(G)) TP -- View this message in context: http://r.789695.n4.nabble.com/Help-with-R2-OpenBUGs-tp4636412p4636424.html Sent from the R help mailing list archive at Nabble.com.