程序问答   发布时间:2022-06-01  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了使用大数时 R2WinBUGS 出错大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

如何解决使用大数时 R2WinBUGS 出错?

开发过程中遇到使用大数时 R2WinBUGS 出错的问题如何解决?下面主要结合日常开发的经验,给出你关于使用大数时 R2WinBUGS 出错的解决方法建议,希望对你解决使用大数时 R2WinBUGS 出错有所启发或帮助;

我使用 R 包 R2WinBUGS 来运行带有 R 的 WinBUGs。如果我的数据不是太大,它会起作用,但是当我尝试将一个值从 2700 更改为 2750 时它不起作用(这个增量是完全可能的)。

我使用模型的代码:

sims <- BUGs(data_List,inits = NulL,model.file = "Prev.bUG",parameters = c("ap"),n.chains = 3,n.iter = 1000,BUGs.directory = "winbugs14/",deBUG=TRUE)

我的模型是:

@H_934_7@model 
{
  y ~ dbin(ap,n)
  ap <- Se*PT+(1-Sp)*(1-PT)
  z ~ dbern(0.05)
  Se ~ dbeta(55,13) 
  Sp ~ dbeta(500,15) 
  tpa ~ dbeta(1,1) 
  PT <- z*tpa 
  a <- equals(PT,0)
}

适用于

data_List <- List(
  y = 32,n = 2700)

但它没有

data_List <- List(
  y = 32,n = 2750)

错误信息:

display(log)
check(C:/Users/GGCRL1~1/ApPDAta/Local/Temp/RtmpuvZS2x/Prev.bUG.txt)
model is syntactically correct
data(C:/Users/GGCRL1~1/ApPDAta/Local/Temp/RtmpuvZS2x/data.txt)
data loaded
compile(3)
model compiled
inits(1,C:/Users/GGCRL1~1/ApPDAta/Local/Temp/RtmpuvZS2x/inits1.txt)
expected a number or an NA
inits(2,C:/Users/GGCRL1~1/ApPDAta/Local/Temp/RtmpuvZS2x/inits2.txt)
inits(3,C:/Users/GGCRL1~1/ApPDAta/Local/Temp/RtmpuvZS2x/inits3.txt)
gen.inits()
value of bernoulli z must be an Integer
thin.updater(15)
update(334)
command #BUGs:update cAnnot be executed (is greyed out)
set(ap)
command #BUGs:set cAnnot be executed (is greyed out)
set(deviancE)
command #BUGs:set cAnnot be executed (is greyed out)
Dic.set()
command #BUGs:Dic.set cAnnot be executed (is greyed out)
update(334)
command #BUGs:update cAnnot be executed (is greyed out)
coda(*,C:/Users/GGCRL1~1/ApPDAta/Local/Temp/RtmpuvZS2x/coda)
command #BUGs:coda cAnnot be executed (is greyed out)
stats(*)
command #BUGs:stats cAnnot be executed (is greyed out)
Dic.stats()

Dic
history(*,C:/Users/GGCRL1~1/ApPDAta/Local/Temp/RtmpuvZS2x/history.odC)
command #BUGs:history cAnnot be executed (is greyed out)
save(C:/Users/GGCRL1~1/ApPDAta/Local/Temp/RtmpuvZS2x/log.odC)
save(C:/Users/GGCRL1~1/ApPDAta/Local/Temp/RtmpuvZS2x/log.txt)

你能帮我吗?任何建议将不胜感激。非常感谢。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

大佬总结

以上是大佬教程为你收集整理的使用大数时 R2WinBUGS 出错全部内容,希望文章能够帮你解决使用大数时 R2WinBUGS 出错所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签:出错