Brook Milligan
unread,Sep 9, 2025, 4:35:14 PMSep 9Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to nimble-users
I have a complex hierarchical model with lots of related constants, data, etc. Until now, I have always passed lists of scalars as the constants, data, and inits arguments to nimble. Now, as the scale increases, that seems confusing and error prone.
Is it possible to represent related quantities in a higher level data structure, e.g., a list, and pass the entire list as part of, say, the constants? Something like,
L <- list(A,B,C,D)
nimbleMCMC(constants=L)
and refer to L$A[i] and L$B[j] in the model itself?
When I try something like this, I get messages like the following:
[Warning] Indexing information for A not provided in `constants`.
Information has been found in the user's environment,
but we recommend all indexing information be provided via `constants`.
To me, this suggests that nimble is not using the list argument as the source of information being passed into the model.
Thoughts?
Cheers,
Brook