Solved – get predictions from Winbugs/OpenBUGS

bayesianbugspredictionrwinbugs

I am new to WinBUGS and OpenBUGS.
I just fit a model to try an example. I was wondering whether I can get predictions generated by WinBUGS/OpenBUGS. If not, are there any convenient ways available (with the help of other applications, R, for example) to do this?

Thanks a lot.

Best Answer

Yes, you can. In Bayesian tools, it is very easy to get predictions. In your design matrix, just add new rows, with response variable set to NA. You can see concrete example here.

Related Question