Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在使用 JAGS 进行贝叶斯数据分析时遇到了一个奇怪的问题。循环说,我有
for (i in 1:10) { A[i] <- B[i]*exp(-C[i]) }
当 C[i] 很大并且导致 exp(-C[i]) 小于 10^-16 时,A[i] 取 A[i-1] 的值。看起来 JAGS 无法处理小指数值,但 10^-16 并不是一个小数字。