Skip to content

Commit b8e0fed

Browse files
committed
Clarify in manual that non-increasing indexing not allowed.
1 parent fba37d3 commit b8e0fed

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

UserManual/src/chapter_WritingModels.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ The following are not supported.
7575
and if the dimensions of the variable are not clearly defined in
7676
other declarations, NIMBLE currently requires that the dimensions of
7777
x be provided when the model object is created (via `nimbleModel`).
78-
1. Use of non-sequential indexes in the definition of a for loop. JAGS allows syntax such as `for(i in expr)` when `expr` evaluates to an integer vector. In NIMBLE one can use the work-around of defining a constant vector, say `k`, and using `k[i]` in the body of the for loop.
79-
1. Use of non-sequential indexes to subset variables. JAGS allows syntax such as `sum(mu[expr])` when `expr` evaluates to an integer vector. In NIMBLE one can use the work-around of defining a nimbleFunction that takes `mu` and the index vector as arguments and does the calculation of interest.
78+
1. Use of non-sequentially-increasing indexes in the definition of a for loop. JAGS allows syntax such as `for(i in expr)` when `expr` evaluates to an integer vector. In NIMBLE one can use the work-around of defining a constant vector, say `k`, and using `k[i]` in the body of the for loop.
79+
1. Use of non-sequentially-increasing indexes to subset variables. JAGS allows syntax such as `sum(mu[expr])` when `expr` evaluates to an integer vector. In NIMBLE one can use the work-around of defining a nimbleFunction that takes `mu` and the index vector as arguments and does the calculation of interest.
8080

8181
## Writing models
8282

0 commit comments

Comments
 (0)