What does this JAGS error mean? "Error in Slicer: Current value is inconsistent with data"
I'm using JAGS and R, linked via rjags and R2jags, to fit a series of models. The models are all the same except for the number of dimensions on one particular latent variable. (I can supply more detail if needed.)
When I run the R script, the first iteration executes without problems. But when the script gets to the second model, it crashes like so:
Compiling model graph
Resolving undeclared variables
Allocating nodes
Graph Size: 51742
Deleting model
Error: RUNTIME ERROR:
Error in Slicer: Current value is inconsistent with data
I can't find any documentation for this error. What does it mean, and how can I fix it? Th开发者_StackOverflow社区anks!
I have seen this error before when the initial values for stochastic nodes are inconsistent with their parents. For instance if you have X ~ Binomial(p,10) and the starting value is either greater than 10 (or < 0) or is not an integer. Does that help?
精彩评论