Bayesian clustering for row effects models