gertvv / gemtc

GeMTC R package: model generation for network meta-analysis
GNU General Public License v3.0
44 stars 27 forks source link

Fix for change in precedence of ':' operator in JAGS 4.0.0 #36

Closed martynplummer closed 9 years ago

martynplummer commented 9 years ago

In JAGS 4.0.0, the sequence operator ':' has the same precedence as in R. This means that the code "for(i in 1:k-1)" will generate a sequence 0, 1, ..., k-1 rather than 1, 2, ...(k-1) as JAGS 3.4.0 currently does, leading to a compile error. Use brackets to enforce correct precedence.

JAGS 4.0.0 is currently in beta and due for full release on 1 October, along with an updated rjags package on CRAN.