Quick question -
Let's say I have the first 4 values of a six-dimensional simplex, and I want to a) make estimates of alpha below, and b) generate predictions (par1 .. par3), which are parameters of the model. The restriction of course is that the parameters + data = 1.
[data1, data2, data3, data4, par1, par2, par3]' ~ dirichlet(alpha)
Any suggestions on how to implement this?
Currently, I'm building the simplex in the transformed parameters block, then calculating the log absolute determinant of the inverse transform (I think?). Is this just the log of the second expression on p487 of the 2.11 manual? To my mind, the model would then be something like
model {
// prior on alpha
// Expression which I suppose gives some structure to par1...par3?
target += my_log_abs_jac_inv_trans_calculated_elsewher;
//likelihood
my_simplex ~ dirichlet(alpha);
}
Does that seem right? I'm doing this at the moment and it's not working. So I'm trying to work out whether my approach to implementing is wrong, or whether I'm calculating the wrong log abs jac...
Cheers,
Jim