标签: r jags r2jags
使用R2jags时,如何在每次迭代中保存每个模拟数据集和参数值(在此示例中为“ params”)?
sim <- jags(data = data_r2jags, inits = jags.inits, parameters.to.save = params, model.file = mod_r2jags, n.chains = 2, n.iter= 8000, DIC= T)