size.test.ancova2(.05, .9, 1.37, .7, 1, 0, 1)
# Should return:
# n1 n2
# 61 61
size.test.ancova2(.05, .9, 1.37, .7, 1, 0, 2)
# Should return:
# n1 n2
# 47 94
size.test.ancova2(.05, .9, 1.37, .7, 1, .5, 1)
# Should return:
# n1 n2
# 65 65
Run the code above in your browser using DataLab