JAGS无法识别R'中存储的值;全球环境
我在Windows10中使用R2jags软件包运行Rv3.6.1和RStudiov1.2版本的JAGS。JAGS似乎找不到我在R中为MCMC设置(如n.iter、n.burn-in等)创建的存储值,因为我的代码:JAGS无法识别R'中存储的值;全球环境,r,jags,rjags,r2jags,R,Jags,Rjags,R2jags,我在Windows10中使用R2jags软件包运行Rv3.6.1和RStudiov1.2版本的JAGS。JAGS似乎找不到我在R中为MCMC设置(如n.iter、n.burn-in等)创建的存储值,因为我的代码: out2 <- jags.parallel (data = data, inits = inits, parameters.to.save = parameters, model.file = "C:\\Users\\jj1995\\Desktop\\VIP\\Tha
out2 <- jags.parallel (data = data, inits = inits, parameters.to.save = parameters,
model.file = "C:\\Users\\jj1995\\Desktop\\VIP\\Thanakorn\\DLM\\district model.txt", n.chains = n.chain,
n.thin = n.thin, n.iter = n.iter, n.burnin = n.burn)
如果我用数字(n.burnin=10000)替换存储值的名称,它将返回相同的错误,但MCMC设置不同。我假设JAGS也无法找到我存储在全局环境中的列表和数据帧。我认为我的系统的防火墙阻止了JAGS访问全球环境,所以我禁用了防病毒措施,并以管理员身份运行了R和Rstudio。这并没有解决问题。您能发布您的JAGS型号代码吗?模型代码中的所有内容是否作为“数据”中的命名项传入?谢谢Zoey RW。“数据”中遗漏了一些存储值参数。当我把它们包括在列表中时,所有的参数都被找到了。太棒了,很高兴它成功了!JAGS肯定有一个学习曲线。
Error in checkForRemoteErrors(lapply(cl, recvResult)) :
3 nodes produced errors; first error: object 'n.burn' not found