I have an array of integers which I want to model with a multinomial distribution. The problem is the numbers in the vector is related to the inverse probability: The higher the number is, the lower the probability will be.
For, probability vector w and inputs Int_vec, I currently use the element-wise division as follows (e is a vector of one):
model {
Int_vec ~ multinomial(e ./ w);
}
However, I got into the following error when compiling the model:
There may be parameters that are not unit scale; consider rescaling with a multiplier (see manual section 22.12)
It is obvious that the element-wise inversion of w would not lead to another probability vector. So, what is the best way to scale the inverse of w? Should I define another variable in “transforms parameters”?
Any help is highly appreciated!