“Multiple definition of node a” error in Winbugs

点点圈 提交于 2019-12-02 11:48:31

You get this error because you've defined a, b, c within a for() loop. In other words you've defined a constant node multiple times (n times). You should replace a, b, c with a[i], b[i], c[i]. Think of BUGS as a model description language, not a programming language. Every quantity in your model has to have one single definition as a fixed or random function of other quantities.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!