Convert a vector to JAGS Probabilities
Probability vectors can be passed manually to the model, but
they must be formatted in code appropriate to JAGS. vectorProbs
will convert a vector of counts or weights to probabilities and format
it into JAGS code.
vectorProbs(p, node, normalize = TRUE)
p |
a vector of counts, weights, or probabilities. |
node |
the node for the parameters. this is converted to a character
string. It is important that this be given accurately or it will not
match with the code written by |
normalize |
A logical indicating if the weights in |
Jarrod Dalton and Benjamin Nutter
vectorProbs(c(1, 2, 3), "wells")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.