Abstract
Determination of group sizes is an important issue when planning a study that aims to compare mean outcomes across groups. Using equal group sizes is not the best choice in the case of heterogeneous costs and/or variances. Conventional optimal design methodology has shown that groups with higher variance and lower costs should include more subjects. However, these results are based on the framework of null hypothesis significance testing, which has received severe criticism over the past decades. The Bayesian approach to hypothesis testing has been proposed as an alternative and uses the Bayes factor to quantify the support of a hypothesis given the data. Group sizes that maximize the Bayes factor are determined, and it is shown how these optimal group sizes depend on the variances, costs and group means. Furthermore, it is shown to what degree the Bayes factor becomes smaller while using conventional optimal design methodology or equal group sizes. The optimal design methodology is illustrated using examples on multidisciplinary pain management and psychological status and asthma outcomes. A Shiny app has been made available to facilitate the use of the optimal design methodology.