Kia ora all,
I hope you are all doing well in your bubbles and looking forward to more freedom once the outbreak is safely subdued.
I just wanted to comment on an issue which has come up regarding the first part of the Assignment 3. You do not need to calculate DIC “by hand” (although it is a useful exercise). You can use the value provided by WinBUGS.
Once you have fitted your model:
m <- bugs(...)
You can simply type m$DIC to get it.