Solved – Categorical distribution in JAGS

jags

How do I specify for a variable to be uniformly sampled from the discrete values $1,2,\ldots,10$ in JAGS? I guess I want to use the dcat() distribution, but I have yet to find good documentation of the parameters for this.

Best Answer

Have a look at the JAGS user manual. dcat(pi) is defined with a density of $\pi_x/\sum_i{\pi_i}$.

Related Question