全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 winbugs及其他软件专版
1738 1
2014-06-26
Dear lister

I get an error when I call bugs(..., program="OpenBUGS", bugs.directory="c:/Program files/OpenBUGS/OpenBUGS312"), expecting, as suggested in help(bugs), that it would fit the model with openbugs() via BRugs.
复制代码
However, it works fine when I directly call openbugs().  All other things are exactly the same.  It seems that (in my
settings) bugs(program="OpenBUGS") works differently than openbugs().  Am I doing something wrong with bugs()?   Or there is something wrong with my OpenBUGS installation?

I am using R-2.12.0, R2WinBUGS 2.1-16 (2009-11-06), OpenBUGS 3.1.2 rev 668 (2010-09-28), and BRugs 0.5-3 (2009-11-06)  on a Windows XP machine.

Thanks
复制代码


二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2014-6-30 15:04:05
Hello~
I suggest you use package "R2OpenBUGS" to call BUGS. Add the following codes to the first few lines of your R codes.

复制代码


Then, modify function openbugs() into the following codes:
复制代码


Hope this help~good luck
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群