Complex model on PYMC3 - Nonlinear Hierarchical model?

Hi , thanks for your answer. I will try the suggested idea with sigma and see what happens.

Can you refer me to some example on how to use pm.DensityDist , and maybe a little guide on how to use it in this case.

Thanks.