size.test.prop2(.05, .8, .5, .5, .2)
# Should return:
# Sample size per group
# 109
size.test.prop2(.05, .8, .3, .1, .2)
# Should return:
# Sample size per group
# 71
Run the code above in your browser using DataLab