A Bayesian approach to subset analysis with application to binomial count data