Bayesian subgroup analysis in clinical trials