Compositional ideas in the bayesian analysis of categorical data with application to dose finding clinical trials