Dirichlet Multinomial model in JAGS with categorical X
问题 Can someone help with JAGS code for a Bayesian multinomial logistic model with one categorical X variable (Dirichlet prior)? My representative sample is the matrix "z" in the code below that represents the 3 outcomes and "site", in the bottom line of code, is the categorical x variable. I can get the code that estimates each of the 3 outcomes but I'm stumped on how to add a categorical X (hospital site). I would like to use the first outcome, z[, 1], as the reference and 'a' as the reference