Sample size determination and allocation