posterior_ranks function

Treatment rankings and rank probabilities